Skip to content

Commit db97a00

Browse files
Fix: constructor argument of declarative_base is optional (#193)
See sqlalchemy documentation: https://docs.sqlalchemy.org/en/14/orm/mapping_api.html#sqlalchemy.orm.declarative_base.params.constructor Fixes #192.
1 parent 2940033 commit db97a00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlalchemy-stubs/orm/decl_api.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def declarative_base(
4949
mapper: Optional[Callable[..., Mapper]] = ...,
5050
cls: Union[type, Tuple[type, ...]] = ...,
5151
name: str = ...,
52-
constructor: Callable[..., None] = ...,
52+
constructor: Optional[Callable[..., None]] = ...,
5353
class_registry: Optional[MutableMapping[Any, Any]] = ...,
5454
metaclass: type = ...,
5555
) -> type: ...

0 commit comments

Comments
 (0)