Zac Hatfield-Dodds <zac.hatfield.do...@gmail.com> added the comment:

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'>}

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43006>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to