]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
DeclarativeBase ``__table__`` annotation is not optional
authorFederico Caselli <cfederico87@gmail.com>
Sat, 22 Oct 2022 07:57:18 +0000 (09:57 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Sat, 22 Oct 2022 07:57:18 +0000 (09:57 +0200)
Change-Id: I92bfc0cf58fa2e6f9d7e8055f1a337ec806c1410

lib/sqlalchemy/orm/decl_api.py

index e4a89cc80bc632609abd155637ea88748069b7d8..94c5181de38d6d683b2c3059ae26d25138ccc7d0 100644 (file)
@@ -682,7 +682,7 @@ class DeclarativeBase(
 
         __name__: ClassVar[str]
         __mapper__: ClassVar[Mapper[Any]]
-        __table__: ClassVar[Optional[FromClause]]
+        __table__: ClassVar[FromClause]
 
         # pyright/pylance do not consider a classmethod a ClassVar so use Any
         # https://github.com/microsoft/pylance-release/issues/3484