]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
restore Dict[str, str] as potential get_section() type
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 16 May 2023 14:39:31 +0000 (10:39 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 16 May 2023 14:40:09 +0000 (10:40 -0400)
commit95adff69ec5b821235489e4fafdab358a18f323f
tree609796d3605cecb00e197a907a696a6d1219984e
parentf983e1d1442070bfc35ce1c19379221c1baf54cf
restore Dict[str, str] as potential get_section() type

Restored the output type of :meth:`.Config.get_section` to include
``Dict[str, str]`` as a potential return type, which had been changed to
immutable ``Mapping[str, str]``. When a section is returned and the default
is not used, a mutable dictionary is returned.

Change-Id: I6e2c67f00222d7a2b388f9294c5336fd8e2dec94
Fixes: #1244
alembic/config.py
docs/build/unreleased/1244.rst [new file with mode: 0644]