From: Gleb Kisenkov Date: Wed, 16 Nov 2022 11:01:15 +0000 (+0100) Subject: Replace Any with proper type hints X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b907888ec67facc12dbdbccd6f2d9cd533b08a50;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Replace Any with proper type hints --- diff --git a/lib/sqlalchemy/ext/mutable.py b/lib/sqlalchemy/ext/mutable.py index f77ec9b014..f9ed17efc1 100644 --- a/lib/sqlalchemy/ext/mutable.py +++ b/lib/sqlalchemy/ext/mutable.py @@ -514,10 +514,10 @@ class MutableBase: def set_( target: InstanceState[_O], - value: Any, - oldvalue: Any, + value: MutableBase | None, + oldvalue: MutableBase | None, initiator: AttributeEventToken, - ) -> Any: + ) -> MutableBase | None: """Listen for set/replace events on the target data member.