-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable union-attr
mypy check and fix issues
#10942
Conversation
There are 6 errors left unfixed:
The first one appears in a domain method that will be removed once the domain loading tech debt PR gets merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐞
for the other errors you mentioned:
Is there a way to fix the type definition of
I think it's because
this seems like a bug actually, because
what happens if you do a
should we raise an internal error line 826 if |
@m-vdb I've managed to implement feedback for a few of them, but have got 2 left that cannot fix:
I used reveal_type and mypy didn't show anything 😕
I thought of this, but didn't know what to return, since it expects a |
for the last two:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 🎉 I've left a couple of more minor comments, but it's ready to merge!
🚀 A preview of the docs have been deployed at the following URL: https://10942--rasahq-docs-rasa-v2.netlify.app/docs/rasa |
Proposed changes:
mypy
union-attr
error code #9096Status (please check what you already did):
black
(please check Readme for instructions)