]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
typing: fix hybrid property setter (#9269)
authorMehdi ABAAKOUK <sileht@sileht.net>
Wed, 8 Feb 2023 22:48:16 +0000 (23:48 +0100)
committerGitHub <noreply@github.com>
Wed, 8 Feb 2023 22:48:16 +0000 (23:48 +0100)
Fixes #9268

lib/sqlalchemy/ext/hybrid.py

index d3bd699967eb6999f16dba33550825da5c7e7efa..7061ff2b4c1eda071ae38d61a63a1ca6e971e1a4 100644 (file)
@@ -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:
         ...