[New-bugs-announce] [issue42017] Add new type in typing
ThatXliner
report at bugs.python.org
Mon Oct 12 11:41:05 EDT 2020
New submission from ThatXliner <bryan.hu.2020 at 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 <report at bugs.python.org>
<https://bugs.python.org/issue42017>
_______________________________________
More information about the New-bugs-announce
mailing list