Skip to content

Commit

Permalink
Type annotation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
scnerd committed Jun 3, 2024
1 parent a0e1676 commit 74c846b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pynamodb_single_table/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import itertools
import uuid
from inspect import isabstract
from typing import Optional
from typing import Tuple
from typing import Type

Expand Down Expand Up @@ -41,7 +42,7 @@ class SingleTableBaseModel(BaseModel):
_PynamodbMeta: MetaProtocol = PrivateAttr()
__pynamodb_model__: Type[RootModelPrototype] = None

uid: uuid.UUID | None = None
uid: Optional[uuid.UUID] = None

def __init_subclass__(cls, **kwargs):
if cls.__pynamodb_model__:
Expand Down

0 comments on commit 74c846b

Please sign in to comment.