Refactor dict/set/list/tuple literal generic inferring
This commit is contained in:
1 parent
b5b0214c3c
commit
8e8271cf54
4 files changed
+28
-10
No files matched your search
@@ -62,6 +62,9 @@ class HelperContextMixin:
|
||||
return False
|
||||
|
||||
def is_same_class(self, class2):
|
||||
# Class matching should prefer comparisons that are not this function.
|
||||
if type(class2).is_same_class != HelperContextMixin.is_same_class:
|
||||
return class2.is_same_class(self)
|
||||
return self == class2
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user