Skip to content

Commit

Permalink
absl.flags._argument_parser: Mark EnumClassSerializer as generic.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 597635180
  • Loading branch information
rchen152 authored and copybara-github committed Jan 11, 2024
1 parent 6929bf0 commit 2af184b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion absl/flags/_argument_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def serialize(self, value: List[Text]) -> Text:
return str(serialized_value)


class EnumClassSerializer(ArgumentSerializer):
class EnumClassSerializer(ArgumentSerializer[_ET]):
"""Class for generating string representations of an enum class flag value."""

def __init__(self, lowercase: bool) -> None:
Expand Down

0 comments on commit 2af184b

Please sign in to comment.