Skip to content

Commit

Permalink
Add dummy args to empty Dict instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls authored and Pierre-Sassoulas committed Jun 7, 2023
1 parent 3dcea49 commit 4ca8323
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pylint/checkers/typecheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,9 @@ def _infer_from_metaclass_constructor(
class_bases = nodes.List()
class_bases.postinit(elts=cls.bases)

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

Expand Down

0 comments on commit 4ca8323

Please sign in to comment.