Skip to content

Commit 11bb684

Browse files
Add dummy args to empty Dict instantiation
1 parent c831559 commit 11bb684

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pylint/checkers/typecheck.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,9 @@ def _infer_from_metaclass_constructor(
768768
class_bases = nodes.List()
769769
class_bases.postinit(elts=cls.bases)
770770

771-
attrs = nodes.Dict()
771+
attrs = nodes.Dict(
772+
lineno=0, col_offset=0, parent=None, end_lineno=0, end_col_offset=0
773+
)
772774
local_names = [(name, values[-1]) for name, values in cls.locals.items()]
773775
attrs.postinit(local_names)
774776

0 commit comments

Comments
 (0)