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 AlexWaygood
Recipients AlexWaygood, gvanrossum, kj, rhettinger, ronaldoussoren
Date 2021-09-05.11:39:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630841948.3.0.100101781855.issue45100@roundup.psfhosted.org>
In-reply-to
Content
There is a similar issue with `functools.singledispatch`

```
>>> from functools import singledispatch
>>> @singledispatch
... def flip(x: str) -> int:
... 	"""Signature when given a string"""
... 	return int(x)
... 
>>> @flip.register
... def _(x: int) -> str:
... 	"""Signature when given an int"""
... 	return str(x)
... 
>>> flip(5)
'5'
>>> flip('5')
5
>>> help(flip)
Help on function flip in module __main__:
flip(x: str) -> int
    Signature when given a string
```
History
Date User Action Args
2021-09-05 11:39:08AlexWaygoodsetrecipients: + AlexWaygood, gvanrossum, rhettinger, ronaldoussoren, kj
2021-09-05 11:39:08AlexWaygoodsetmessageid: <1630841948.3.0.100101781855.issue45100@roundup.psfhosted.org>
2021-09-05 11:39:08AlexWaygoodlinkissue45100 messages
2021-09-05 11:39:08AlexWaygoodcreate