Skip to content

Using type hint comments without having to import the typing module #1698

Answered by hauntsaninja
huntfx asked this question in Q&A
Discussion options

You must be logged in to vote

There's also MYPY = False; if MYPY: ... if you're using mypy

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Daverball
Comment options

@hauntsaninja
Comment options

Answer selected by huntfx
@huntfx
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants