Skip to content

Commit 2af184b

Browse files
rchen152copybara-github
authored andcommitted
absl.flags._argument_parser: Mark EnumClassSerializer as generic.
PiperOrigin-RevId: 597635180
1 parent 6929bf0 commit 2af184b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

absl/flags/_argument_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def serialize(self, value: List[Text]) -> Text:
504504
return str(serialized_value)
505505

506506

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

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

0 commit comments

Comments
 (0)