The Python Oracle

How to specify "nullable" return type with 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: Life in a Drop

--

Chapters
00:00 Question
00:25 Accepted answer (Score 580)
02:04 Answer 2 (Score 29)
02:20 Thank you

--

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

Accepted answer links:
[Optional]: https://docs.python.org/3/library/typing...

--

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

--

Tags
#python #python3x #typehinting #pythontyping

#avk47