You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a fixed version of the file but fixed it without properly understanding why we do different things between type checking time and execution time. toby-bro@87f46fe
As you also did a type checking PR was wondering if it could interest you. I can open a PR on your PR if you want (with the newest version of the file of course).
This solves my problems (as I can't pass from mypy to pyright 😅 )
Summary
When using an enum in a code project mypy is broken and has the impression that all the enum fields are of type 'int'
Reproduction Steps
Run type checking on this file and see the problem in version 2.0.0b7
Expected Results
I would have expected the type checking to pass as in version 2.0.0-beta6
This is caused by #293 (and is not solved by #540)
The expected type of
Colour.RED
is aColour
not anint
.Actual Results
System Information
Checklist
pip install -U --pre betterproto
, if possible.The text was updated successfully, but these errors were encountered: