-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🦾 add @override
to __init__.pyi
, dtypes.pyi
and _just.pyi
#308
🦾 add @override
to __init__.pyi
, dtypes.pyi
and _just.pyi
#308
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
def real(self: _HasDTypeWithReal[_ScalarT], /) -> ndarray[_ShapeT_co, dtype[_ScalarT]]: ... | ||
@real.setter | ||
@override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I vaguely remember having seen somewhere that only the getter needs a @override
... But I can't seem to find anything about that in the typing spec, so I might be wrong here 🤔.
This comment was marked as resolved.
This comment was marked as resolved.
@override
to __init__.pyi
, dtypes.pyi
and _just.pyi
You're right but when I turn off the
could see in this action: https://github.com/numpy/numtype/actions/runs/13815493808/job/38647487183 currently investigating the cause of the error, do u have any idea about this error? 🧑💻 |
This probably has something to do with python/mypy#18622, which apparently can be worked around by applying Either way, it's good news I suppose. I'm not able to reproduce it though 🤔 edit: TLDR; On
and apparently one of the added |
WHYYY? 🤷🏻 |
235094b
to
1295b51
Compare
I'm guessing it has to do with the position of the moon with respect to saturn, or maybe aliens. |
🤣 |
towards #301