title: Name 'variable_name' used both as a parameter and as a global. How to fix?
body: <p>The code I am working with is</p>
  
  <pre><code>build_data = {}
  
  # Code that adds data to build_data
  
  build_data_filtered = {}
  if flag:
  
      # Code that adds subset of build_data to build_data_filtered
  
      global build_data
      build_data = build_data_filtered
  </code></pre>
  
  <p>The line "global build_data" shows a code hint in pycharm</p>
  
  <pre><code>Name 'build_data' used both as a parameter and as a global
  </code></pre>
  
  <p>What can I do to remove this hint or is there a better approach to this?</p>