mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-25 10:07:12 +08:00
Fix usages in context of the new parso parameter include_setitem=True
This commit is contained in:
@@ -120,7 +120,7 @@ class ClassFilter(ParserTreeFilter):
|
||||
# Filter for ClassVar variables
|
||||
# TODO this is not properly done, yet. It just checks for the string
|
||||
# ClassVar in the annotation, which can be quite imprecise. If we
|
||||
# wanted to do this correct, we would have to resolve the ClassVar.
|
||||
# wanted to do this correct, we would have to infer the ClassVar.
|
||||
if not from_instance:
|
||||
expr_stmt = name.get_definition()
|
||||
if expr_stmt is not None and expr_stmt.type == 'expr_stmt':
|
||||
|
||||
Reference in New Issue
Block a user