From: Mike Bayer Date: Thu, 10 Aug 2023 18:34:14 +0000 (-0400) Subject: update for mypy 1.5 X-Git-Tag: rel_2_0_20~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=403902a42e7eac17436c3788b292d70cb7ac59f5;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git update for mypy 1.5 Change-Id: I70a210caa71d538c3c3baf56f25f218edaa6250d --- diff --git a/lib/sqlalchemy/event/base.py b/lib/sqlalchemy/event/base.py index 8507df9d0e..2c32b043e9 100644 --- a/lib/sqlalchemy/event/base.py +++ b/lib/sqlalchemy/event/base.py @@ -24,6 +24,7 @@ from typing import Dict from typing import Generic from typing import Iterator from typing import List +from typing import Mapping from typing import MutableMapping from typing import Optional from typing import overload @@ -282,7 +283,7 @@ class _HasEventsDispatch(Generic[_ET]): @classmethod def _create_dispatcher_class( - cls, classname: str, bases: Tuple[type, ...], dict_: Dict[str, Any] + cls, classname: str, bases: Tuple[type, ...], dict_: Mapping[str, Any] ) -> None: """Create a :class:`._Dispatch` class corresponding to an :class:`.Events` class."""