Fix an mro resolution issue.
This commit is contained in:
1 parent
a91e240c8b
commit
4f2d4992da
3 files changed
+47
-9
No files matched your search
@@ -450,9 +450,26 @@ class TestX(object):
|
||||
# -----------------
|
||||
|
||||
class A(object):
|
||||
pass
|
||||
a = 3
|
||||
|
||||
#? ['mro']
|
||||
A.mro
|
||||
#? []
|
||||
A().mro
|
||||
|
||||
|
||||
# -----------------
|
||||
# mro resolution
|
||||
# -----------------
|
||||
|
||||
class B(A()):
|
||||
b = 3
|
||||
|
||||
#?
|
||||
B.a
|
||||
#?
|
||||
B().a
|
||||
#? int()
|
||||
B.b
|
||||
#? int()
|
||||
B().b
|
||||
Reference in new issue
Block a user