Skip to content

[N/A] Fixed protobuf enum typehint#45

Merged
amessing-bdai merged 1 commit into
mainfrom
amessing/hotfit_enum_typehint
Jun 29, 2023
Merged

[N/A] Fixed protobuf enum typehint#45
amessing-bdai merged 1 commit into
mainfrom
amessing/hotfit_enum_typehint

Conversation

@amessing-bdai
Copy link
Copy Markdown
Contributor

Didn't retest after the last commit from #34 as it just added typehints. When a protobuf enum type is converted to python, it is not created as a python type but as an EnumTypeWrapper object and thus cannot be used in typehints (this is explained in a comment in this PR too). This fixes that oversite.

@amessing-bdai amessing-bdai merged commit a97544a into main Jun 29, 2023
@amessing-bdai amessing-bdai deleted the amessing/hotfit_enum_typehint branch June 29, 2023 20:13
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.

2 participants