Message385534
A closely related problem, also via https://github.com/HypothesisWorks/hypothesis/issues/2767
import inspect
def f(x) -> None:
pass
annotations = inspect.getfullargspec(f).annotations
assert annotations == {"return": None}, annotations
Under Python 3.10, annotations is now {"return": <class 'NoneType'>} |
|
Date |
User |
Action |
Args |
2021-01-23 13:18:37 | Zac Hatfield-Dodds | set | recipients:
+ Zac Hatfield-Dodds, gvanrossum, BTaskaya, kj |
2021-01-23 13:18:37 | Zac Hatfield-Dodds | set | messageid: <1611407917.28.0.133129877517.issue43006@roundup.psfhosted.org> |
2021-01-23 13:18:37 | Zac Hatfield-Dodds | link | issue43006 messages |
2021-01-23 13:18:37 | Zac Hatfield-Dodds | create | |
|