Skip to content

Commit

Permalink
fix: revert to Optional style type syntax (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
cofin authored Dec 11, 2024
1 parent 9549268 commit e66a59d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions advanced_alchemy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import contextlib
import re
from datetime import date, datetime
from typing import TYPE_CHECKING, Any, Iterator, Protocol, cast, runtime_checkable
from typing import TYPE_CHECKING, Any, Iterator, Optional, Protocol, cast, runtime_checkable
from uuid import UUID

from sqlalchemy import Date, MetaData, String
Expand Down Expand Up @@ -346,7 +346,7 @@ class AdvancedDeclarativeBase(DeclarativeBase):
registry = orm_registry
__abstract__ = True
__metadata_registry__: MetadataRegistry = MetadataRegistry()
__bind_key__: str | None = None
__bind_key__: Optional[None] = None # noqa: UP007

def __init_subclass__(cls, **kwargs: Any) -> None:
bind_key = getattr(cls, "__bind_key__", None)
Expand Down

0 comments on commit e66a59d

Please sign in to comment.