This causes the correctRewrite declaration to be found in some unusual cases that previously failed.onForName()
This causes the correct declaration to be found in some unusual cases that previously failed.
Only names declared before a function definition, or at module scope, * Names can be usewere found in a functionits body before their definition,. provided that they're definedNames may be declared later (but before the function is called.); Tthese weren' not found unless declared at module scope.und.
BUG: 378083
* Class attributes from any enclosing class definition were found in default arguments., Onlynot only those from a method's parent class should be found.
* Class or instance attributes were, correctly, not directly visible inside a method body (only with `self.` or similar)., They did however hidbut hid declarations of the same names from in outer contexts other than module scopethat should be found.