state.identity_token = shard_id
return shard_id
- def connection_callable( # type: ignore [override]
+ def connection_callable(
self,
mapper: Optional[Mapper[_T]] = None,
instance: Optional[Any] = None,
# the idea is that at some point NO_ARG will warn that in the future
# the default will switch to close_resets_only=False.
- if close_resets_only or close_resets_only is _NoArg.NO_ARG:
+ if close_resets_only in (True, _NoArg.NO_ARG):
self._close_state = _SessionCloseState.CLOSE_IS_RESET
else:
self._close_state = _SessionCloseState.ACTIVE
deps=
greenlet != 0.4.17
importlib_metadata; python_version < '3.8'
- mypy >= 1.6.0
+ mypy >= 1.14.0
types-greenlet
commands =
mypy {env:MYPY_COLOR} ./lib/sqlalchemy