We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aec3308 commit 1c94b04Copy full SHA for 1c94b04
pylint_pydantic/field.py
@@ -12,7 +12,7 @@
12
13
def _looks_like_pydantic_field_call(node: nodes.Call, check_scope: bool = True):
14
if check_scope:
15
- stmt = node.statement(future=True)
+ stmt = node.statement()
16
scope = stmt.scope()
17
if not (isinstance(stmt, nodes.AnnAssign) and stmt.value is not None and isinstance(scope, nodes.ClassDef)):
18
return False
0 commit comments