mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-04 21:38:47 +08:00
fixed a problem that combined __getattr__ and usages
This commit is contained in:
1 parent
2359ccbeb1
commit
a895561f1a
2 files changed
+14
No files matched your search
@@ -132,6 +132,16 @@ class TestInstanceVar():
|
||||
self._instance_var
|
||||
|
||||
|
||||
class NestedClass():
|
||||
def __getattr__(self, name):
|
||||
return self
|
||||
|
||||
# Shouldn't find a definition, because there's no name defined (used ``getattr``).
|
||||
|
||||
#< (0, 14),
|
||||
NestedClass().instance
|
||||
|
||||
|
||||
# -----------------
|
||||
# inheritance
|
||||
# -----------------
|
||||
|
||||
Reference in new issue
Block a user