Skip to content

Conversation

sobolevn
Copy link
Member

Now TypeGuard is required to be in the function's return type position. In other places it is just a bool type. But, we start to raise an error.

To be honest, PEP does not mention this, but I think that it is a reasonable thing to do.
Closes #11765

CC @erictraut

@sobolevn
Copy link
Member Author

@97littleleaf11 @hauntsaninja any feedback? 🙂

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no error when using TypeGuard outside of return type
2 participants