Message397080
Same for list btw
Python 3.9.6 (default, Jul 7 2021, 11:41:04)
[Clang 12.0.5 (clang-1205.0.22.9)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> list[str, str, str]
list[str, str, str]
>>> from typing import List
>>> List[str, str, str]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/michaelthe/.pyenv/versions/3.9.6/lib/python3.9/typing.py", line 275, in inner
return func(*args, **kwds)
File "/Users/michaelthe/.pyenv/versions/3.9.6/lib/python3.9/typing.py", line 828, in __getitem__
_check_generic(self, params, self._nparams)
File "/Users/michaelthe/.pyenv/versions/3.9.6/lib/python3.9/typing.py", line 212, in _check_generic
raise TypeError(f"Too {'many' if alen > elen else 'few'} parameters for {cls};"
TypeError: Too many parameters for typing.List; actual 3, expected 1
>>> |
|
Date |
User |
Action |
Args |
2021-07-07 13:26:23 | mthe | set | recipients:
+ mthe |
2021-07-07 13:26:23 | mthe | set | messageid: <1625664383.05.0.918193310726.issue44578@roundup.psfhosted.org> |
2021-07-07 13:26:23 | mthe | link | issue44578 messages |
2021-07-07 13:26:23 | mthe | create | |
|