The Python Oracle

mypy: base class has no attribute x, how to type hint in base class

This video explains
mypy: base class has no attribute x, how to type hint in base class

--

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: Dreaming in Puzzles

--

Chapters
00:00 Question
02:03 Accepted answer (Score 20)
02:45 Answer 2 (Score 5)
03:17 Thank you

--

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

Accepted answer links:
[Variable Annotation]: https://www.python.org/dev/peps/pep-0526/
[a separate syntax]: https://www.python.org/dev/peps/pep-0526...

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

--

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

--

Tags
#python #annotations #typehinting #mypy

#avk47