-
Notifications
You must be signed in to change notification settings - Fork 439
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
Short form of enum.StrEnum fails #946
Comments
Thanks for reporting this issue, I'll take a look next week |
I can confirm that Pyre doesn't support functional syntax for any enums besides I could add support for |
@yangdanny97 if you are in the process of refactoring, I would wait to be honest. Especially since switching to the class syntax solves the issue. Thanks for the great tool! |
Summary: Context: #946 Previously, Pyre only supported the functional declaration syntax for `enum.Enum` and not any of its subclasses. It's difficult to extend this to all subclasses due to this being handled in preprocessing, but this diff extends its support to `enum.StrEnum` and `enum.IntEnum` which is a fairly easy lift. Reviewed By: stroxler Differential Revision: D66669647 fbshipit-source-id: b4560e637a1806e195d21be7adcdf0e06ed4d016
Pyre Bug
Bug description
Similar to #698 only using
enum.StrEnum
in place ofenum.Enum
.Reproduction steps
Expected behavior
Type checking works.
Logs
Please include any relevant logs here:
Please run your reproduction steps followed by
pyre rage > pyre_rage.log
, and upload the file here:pyre_rage.log
Additional context
Using hatch to manage virtual environments and have pyre installed into the environment.
The text was updated successfully, but these errors were encountered: