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
Mypys' string representation of certain types can get quite verbose, especially when larger Unions are involved.
Ideally we should be able to use aliases when running the reveal tests, allowing us to keep things a bit more compact:
Another use case as encountered in #17843 and #17514: platform-specific types. Describing a dynamically assigned class with a static comment has proved somewhat troublesome:
importnumpyasnpp: np.intp# Can be either `numpy.signedinteger[numpy.typing._64Bit]` or `numpy.signedinteger[numpy.typing._32Bit]`reveal_type(p) # E: numpy.signedinteger[numpy.typing._
Mypys' string representation of certain types can get quite verbose, especially when larger
Union
s are involved.Ideally we should be able to use aliases when running the
reveal
tests, allowing us to keep things a bit more compact:numpy/numpy/typing/tests/data/reveal/arithmetic.py
Lines 84 to 86 in c004383
For further reference: there is currently a mypy issue with a similar request, but who know when/if
this will be implemented (python/mypy#9381).
The text was updated successfully, but these errors were encountered: