The Python Oracle

Python: circular imports needed for type checking

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: RPG Blues Looping

--

Chapters
00:00 Question
01:46 Accepted answer (Score 7)
02:46 Answer 2 (Score 6)
03:50 Answer 3 (Score 2)
04:07 Answer 4 (Score 1)
04:48 Thank you

--

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

Answer 1 links:
[abstract base class]: http://docs.python.org/library/abc.html

Answer 3 links:
[Python type hinting without cyclic imports]: https://stackoverflow.com/questions/3974...
[Forward Reference]: https://www.python.org/dev/peps/pep-0484...

--

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

--

Tags
#python #import #circulardependency

#avk47