Skip to content

Forward references in methods #1180

Answered by erictraut
superbobry asked this question in Q&A
Discussion options

You must be logged in to vote

That's correct. Mypy and pyright both interpret it this way. However, I'd recommend against using conflicting names like this. It harms readability, and you will inevitably see inconsistencies across tools.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@superbobry
Comment options

@erictraut
Comment options

@superbobry
Comment options

@hmc-cs-mdrissi
Comment options

@superbobry
Comment options

Answer selected by superbobry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants