From: Mehdi ABAAKOUK Date: Wed, 8 Feb 2023 22:48:16 +0000 (+0100) Subject: typing: fix hybrid property setter (#9269) X-Git-Tag: rel_2_0_3~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a115e5ac91d18ef48f2a314d49973332130725a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git typing: fix hybrid property setter (#9269) Fixes #9268 --- diff --git a/lib/sqlalchemy/ext/hybrid.py b/lib/sqlalchemy/ext/hybrid.py index d3bd699967..7061ff2b4c 100644 --- a/lib/sqlalchemy/ext/hybrid.py +++ b/lib/sqlalchemy/ext/hybrid.py @@ -764,7 +764,7 @@ class _HybridGetterType(Protocol[_T_co]): class _HybridSetterType(Protocol[_T_con]): - def __call__(self, instance: Any, value: _T_con) -> None: + def __call__(s, self: Any, value: _T_con) -> None: ...