Skip to content

Commit acf097b

Browse files
jacobtylerwallsPierre-Sassoulas
authored andcommitted
Add dummy args to empty Dict instantiation
1 parent c2b0195 commit acf097b

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
@@ -778,7 +778,9 @@ def _infer_from_metaclass_constructor(
778778
class_bases = nodes.List()
779779
class_bases.postinit(elts=cls.bases)
780780

781-
attrs = nodes.Dict()
781+
attrs = nodes.Dict(
782+
lineno=0, col_offset=0, parent=None, end_lineno=0, end_col_offset=0
783+
)
782784
local_names = [(name, values[-1]) for name, values in cls.locals.items()]
783785
attrs.postinit(local_names)
784786

0 commit comments

Comments
 (0)