Skip to content

Commit

Permalink
Fix TypeError: 'type' object is not subscriptable (#33280)
Browse files Browse the repository at this point in the history
Internal dataflow tests reference this code line with the error `TypeError: 'type' object is not subscriptable`.
  • Loading branch information
damondouglas authored Dec 4, 2024
1 parent 40423bc commit 122368f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdks/python/apache_beam/metrics/cells.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def __repr__(self) -> str:
def get_cumulative(self) -> "StringSetData":
return StringSetData(set(self.string_set), self.string_size)

def get_result(self) -> set[str]:
def get_result(self) -> Set[str]:
return set(self.string_set)

def add(self, *strings):
Expand Down

0 comments on commit 122368f

Please sign in to comment.