The Python Oracle

Is it possible to type hint a lambda function?

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: Quirky Dreamscape Looping

--

Chapters
00:00 Question
00:59 Accepted answer (Score 243)
04:03 Answer 2 (Score 62)
04:21 Answer 3 (Score 9)
04:51 Answer 4 (Score 4)
05:21 Thank you

--

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

Accepted answer links:
[PEP 526 variable annotations]: https://www.python.org/dev/peps/pep-0526/
[typing.Callable]: https://docs.python.org/3/library/typing...
[PEP 544 ]: https://www.python.org/dev/peps/pep-0544...
[typing-extensions]: https://pypi.org/project/typing-extensio.../
[PEP 3107 - ]: https://www.python.org/dev/peps/pep-3107...
[was decided]: http://web.archive.org/web/2015092216372...

Answer 2 links:
[PEP 526]: https://www.python.org/dev/peps/pep-0526/

Answer 4 links:
[Is it pythonic: naming lambdas]: https://stackoverflow.com/questions/3838...

--

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

--

Tags
#python #lambda

#avk47