Skip to content

Commit

Permalink
fix: Use Union from typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarrabah committed Jan 2, 2025
1 parent 76cf892 commit f0149ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frformat/versioned_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Protocol,
Tuple,
TypeVar,
Union,
cast,
runtime_checkable,
)
Expand Down Expand Up @@ -77,7 +78,7 @@ def add_version(self, new_version: V, data: Data):

self._versionned_data.update({new_version.get_id(): (new_version, data)})

def get_data(self, version_id: str) -> Data | None:
def get_data(self, version_id: str) -> Union[Data, None]:
"""
Get the data associated with the given version ID.
Expand Down

0 comments on commit f0149ce

Please sign in to comment.