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

You must be logged in to vote

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

Replies: 2 comments 3 replies

You must be logged in to vote
3 replies
@Daverball

@hauntsaninja

Answer selected by huntfx
@huntfx

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