mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-11 14:32:20 +08:00
A small change in parso changed the normalize API.
This commit is contained in:
@@ -348,7 +348,8 @@ def _check_isinstance_type(context, element, search_name):
|
||||
is_instance_call = helpers.call_of_leaf(lazy_context_object.data)
|
||||
# Do a simple get_code comparison. They should just have the same code,
|
||||
# and everything will be all right.
|
||||
assert is_instance_call._normalize() == call._normalize()
|
||||
normalize = context.evaluator.grammar._normalize
|
||||
assert normalize(is_instance_call) == normalize(call)
|
||||
except AssertionError:
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user