Skip to content

Commit

Permalink
Fixed type annotation for Py 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
stasdavydov committed Jul 12, 2024
1 parent 6a8e89f commit e6791b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pys/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class _Persisted(cls):
if not hasattr(cls, field_as_id):
if is_msgspec_struct(cls):
import msgspec
__my_saved_id__: str | None | msgspec.UnsetType = msgspec.UNSET
__my_saved_id__: Union[str, None, msgspec.UnsetType] = msgspec.UNSET
else:
__slots__ = (MY_SAVED_ID,)

Expand Down

0 comments on commit e6791b4

Please sign in to comment.