The Python Oracle

How can I specify the function type in my type hints?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Drifting Through My Dreams

--

Chapters
00:00 Question
00:27 Accepted answer (Score 640)
01:27 Answer 2 (Score 18)
01:51 Answer 3 (Score 12)
02:05 Answer 4 (Score 10)
03:09 Thank you

--

Full question
https://stackoverflow.com/questions/3783...

Question links:
[PEP 483]: https://www.python.org/dev/peps/pep-0483/

Accepted answer links:
[@jonrsharpe]: https://stackoverflow.com/questions/3783...
[typing.Callable]: https://docs.python.org/3.6/library/typi...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #python3x #typehinting #mypy #pythontyping

#avk47