Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mypy/subtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2278,7 +2278,7 @@ def infer_variance(info: TypeInfo, i: int) -> bool:
self_type = fill_typevars(info)
for member in all_non_object_members(info):
# __mypy-replace is an implementation detail of the dataclass plugin
if member in ("__init__", "__new__", "__mypy-replace"):
if member in {"__init__", "__new__", "__replace__", "__mypy-replace"}:
continue

if isinstance(self_type, TupleType):
Expand Down
Loading