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 kumaraditya
Recipients kumaraditya, rhettinger
Date 2021-12-10.09:04:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639127096.15.0.258621113418.issue46032@roundup.psfhosted.org>
In-reply-to
Content
functools' singledispatch does not support GenericAlias

```py
from functools import singledispatch

@singledispatch
def func(x):
    print("any")

@func.register
def _(x: list[str]):
    print("list[str]")


func(["a", "b"])

```
History
Date User Action Args
2021-12-10 09:04:56kumaradityasetrecipients: + kumaraditya, rhettinger
2021-12-10 09:04:56kumaradityasetmessageid: <1639127096.15.0.258621113418.issue46032@roundup.psfhosted.org>
2021-12-10 09:04:56kumaradityalinkissue46032 messages
2021-12-10 09:04:56kumaradityacreate