title: unresolved reference get_func() in pycharm
body: <p>I am sorry but i am just starting with python, but i had a Unresolved reference get_func() error in the following code:</p>
  
  <pre><code>class Foo:
  
       fo = open(file_name, "r")
  
       with open(file_name, 'r') as file:
  
           examples = int(file.readline())
           attributes = int(file.readline())
  
           name_of_attributes = [n for n in (file.readline().replace(" ", "")).split(",")]
  
          all_examples = file.readlines()
  
  
  
      get_func(); // error here
  
      def get_func(self):
          list_of_keys = ['S_Length', 'S_Width', 'P_Length', 'P_Width', 'Predicate']
          with open('example.txt') as f:
              for line in f:
                  return;
  </code></pre>