Skip to content

Commit 1c94b04

Browse files
authored
Fixed astroid 3.x DeprecationWarning (#34)
Closes #33
1 parent aec3308 commit 1c94b04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylint_pydantic/field.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
def _looks_like_pydantic_field_call(node: nodes.Call, check_scope: bool = True):
1414
if check_scope:
15-
stmt = node.statement(future=True)
15+
stmt = node.statement()
1616
scope = stmt.scope()
1717
if not (isinstance(stmt, nodes.AnnAssign) and stmt.value is not None and isinstance(scope, nodes.ClassDef)):
1818
return False

0 commit comments

Comments
 (0)