mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Better testing of classes.
This commit is contained in:
13
test/static_analysis/class_simple.py
Normal file
13
test/static_analysis/class_simple.py
Normal file
@@ -0,0 +1,13 @@
|
||||
class Base(object):
|
||||
class Nested():
|
||||
def foo():
|
||||
pass
|
||||
|
||||
|
||||
class X(Base.Nested):
|
||||
pass
|
||||
|
||||
|
||||
X().foo()
|
||||
#! 4 attribute-error
|
||||
X().bar()
|
||||
Reference in New Issue
Block a user