This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mthe
Recipients mthe
Date 2021-07-07.13:26:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625664383.05.0.918193310726.issue44578@roundup.psfhosted.org>
In-reply-to
Content
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
>>>
History
Date User Action Args
2021-07-07 13:26:23mthesetrecipients: + mthe
2021-07-07 13:26:23mthesetmessageid: <1625664383.05.0.918193310726.issue44578@roundup.psfhosted.org>
2021-07-07 13:26:23mthelinkissue44578 messages
2021-07-07 13:26:23mthecreate