python typing: TYPE_CHECKING (intermediate) anthony explains #312

preview_player
Показать описание
today I show you what the `TYPE_CHECKING` constant is in the typing module and why you would ever use it!

==========

I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
Рекомендации по теме
Комментарии
Автор

I like the way he makes videos. No pre written scripts and fixing errors on the fly. 👍👍

adwaithrajesh
Автор

came here to solve an issue with cycle imports, but learned a lot! thank you!

EddiKh
Автор

thank you for explaining it very clear, could able to understand in one go :)

soniyasoni
Автор

Hi Anthony, I often see you going for `if __name__ == "__main__": exit(main())`, but how is exit supposed to end up in the global namespace? It's present in the REPL, but it doesn't seem to be there in a regular `python3 your_module_here.py` invocation...

stijnvandrongelen
Автор

you appear to have spelled discord incorrectly in your description (future planning)

DavidDellsperger