Refactor something to use .type instead of isinstance.

This commit is contained in:
Dave Halter committed 2016-06-30 09:55:21 +02:00
1 parent 689284c615
commit 6b41db96bf
4 files changed
+12 -3

No files matched your search

+1
View File
@@ -22,6 +22,7 @@ from jedi.evaluate.compiled import mixed
class MixedModule(object):
resets_positions = True
type = 'mixed_module'
def __init__(self, evaluator, parser_module, namespaces):
self._evaluator = evaluator