The Python Oracle

Mypy catch AttributeError

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: Realization

--

Chapters
00:00 Question
01:30 Accepted answer (Score 1)
02:16 Answer 2 (Score 0)
03:44 Thank you

--

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

Accepted answer links:
[here]: https://github.com/python/mypy/issues/94...

Answer 2 links:
[happen to be included within typeshed here]: https://github.com/python/typeshed/tree/...
[__init__.py]: https://github.com/yaml/pyyaml/blob/5986...
[corresponding ]: https://github.com/python/typeshed/blob/...
[later today]: https://github.com/python/mypy/issues/70...
[suggested by Georgy in the comments]: https://stackoverflow.com/q/49220022/646...
[--warn-unused-ignores]: https://mypy.readthedocs.io/en/stable/co...

--

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

--

Tags
#python #typing #mypy

#avk47