]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix pep484
authorShamil <ashm.tech@proton.me>
Fri, 18 Apr 2025 20:08:05 +0000 (23:08 +0300)
committerShamil <ashm.tech@proton.me>
Fri, 18 Apr 2025 20:08:05 +0000 (23:08 +0300)
lib/sqlalchemy/orm/identity.py

index 60dbfa4052173b5ce0b57b1e9cd99e56c2c14832..f5959cfe1545dcdf226b4738d19eb641483a85cb 100644 (file)
@@ -101,7 +101,7 @@ class IdentityMap:
         if state.modified:
             self._modified.add(state)
 
-    def _manage_removed_state(self, state: InstanceState[Any]) -> None:
+    def _manage_removed_state(self, state: InstanceState[Any] | None) -> None:
         del state._instance_dict
         if state.modified:
             self._modified.discard(state)