添加注册登录功能
This commit is contained in:
@@ -512,6 +512,9 @@ def declarative_mixin(cls: Type[_T]) -> Type[_T]:
|
||||
|
||||
.. versionadded:: 1.4.6
|
||||
|
||||
.. legacy:: This api is considered legacy and will be deprecated in the next
|
||||
SQLAlchemy version.
|
||||
|
||||
.. seealso::
|
||||
|
||||
:ref:`orm_mixins_toplevel`
|
||||
@@ -1244,7 +1247,7 @@ class registry:
|
||||
|
||||
search = (
|
||||
(python_type, python_type_type),
|
||||
*((lt, python_type_type) for lt in LITERAL_TYPES), # type: ignore[arg-type] # noqa: E501
|
||||
*((lt, python_type_type) for lt in LITERAL_TYPES),
|
||||
)
|
||||
else:
|
||||
python_type_type = python_type.__origin__
|
||||
|
||||
Reference in New Issue
Block a user