diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-03-10 11:57:00 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-03-12 11:42:50 -0500 |
| commit | 4c28867f944637ef313f98d5f09da05255418c6d (patch) | |
| tree | f68776450fc91df8085446d517020603b879d0f8 /lib/sqlalchemy/engine/base.py | |
| parent | 03989d1dce80999bb9ea1a7d36df3285e5ce4c3b (diff) | |
| download | sqlalchemy-4c28867f944637ef313f98d5f09da05255418c6d.tar.gz | |
additional mypy strictness
enable type checking within untyped defs. This allowed
some more internals to be fixed up with assertions etc.
some internals that were unnecessary or not even used
at all were removed. BaseCursorResult was no longer
necessary since we only have one kind of CursorResult
now. The different ResultProxy subclasses that had
alternate "strategies" dont appear to be used at all
even in 1.4.x, as there's no code that accesses the
_cursor_strategy_cls attribute, which is also removed.
As these were mostly private constructs that weren't
even functioning correctly in any case,
it's fine to remove these over the 2.0 boundary.
Change-Id: Ifd536987d104b1cd8b546cefdbd5c1e5d1801082
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
| -rw-r--r-- | lib/sqlalchemy/engine/base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index 37faa880e..d8009e26c 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -23,6 +23,7 @@ from typing import Tuple from typing import Type from typing import Union +from .interfaces import _IsolationLevel from .interfaces import BindTyping from .interfaces import ConnectionEventsTarget from .interfaces import DBAPICursor @@ -510,7 +511,7 @@ class Connection(ConnectionEventsTarget, inspection.Inspectable["Inspector"]): self._handle_dbapi_exception(e, None, None, None, None) @property - def default_isolation_level(self) -> str: + def default_isolation_level(self) -> Optional[_IsolationLevel]: """The default isolation level assigned to this :class:`_engine.Connection`. |
