Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit acf097b

Browse files
jacobtylerwallsPierre-Sassoulas
authored andcommittedJun 6, 2023
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

Lines changed: 3 additions & 1 deletion
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)
Please sign in to comment.