New submission from ThatXliner <bryan.hu.2...@gmail.com>:
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, Decimal, Fraction) ---------- components: Library (Lib) messages: 378505 nosy: ThatXliner priority: normal severity: normal status: open title: Add new type in typing type: enhancement versions: Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42017> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com