You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When comparing dataclass with @dataclass(order=True) using stubtest, stubtest complains that X._DT is not present at runtime (where X is the dataclass).
Bug Report
Cf. python/typeshed#13645 and https://github.com/python/typeshed/actions/runs/13905970431/job/38908976156
When comparing dataclass with
@dataclass(order=True)
using stubtest, stubtest complains thatX._DT is not present at runtime
(whereX
is the dataclass).This is probably due to synthesizing a TypeVar:
mypy/mypy/plugins/dataclasses.py
Line 86 in 5c87e97
(Thanks, @AlexWaygood.)
Your Environment
Command run was:
The text was updated successfully, but these errors were encountered: