[issue42017] Add new type in typing

2020-10-12 Thread Guido van Rossum
Guido van Rossum added the comment: You can easily define that yourself if you need it, though honestly the utility seems marginal. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue42017] Add new type in typing

2020-10-12 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42017] Add new type in typing

2020-10-12 Thread ThatXliner
Change by ThatXliner : -- versions: +Python 3.9 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42017] Add new type in typing

2020-10-12 Thread ThatXliner
Change by ThatXliner : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42017] Add new type in typing

2020-10-12 Thread ThatXliner
New submission from ThatXliner : Because there is a typing.AnyStr (which is equal to AnyStr = TypeVar("AnyStr", str, bytes)), I think there should be a AnyNum which is equivalent to from decimal import Decimal from fractions import Fraction AnyNum = TypeVar("AnyNum", int, float, complex,