diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-01-09 11:49:02 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-01-14 16:30:41 -0500 |
| commit | 4999784664b9e73204474dd3dd91ee60fd174e3e (patch) | |
| tree | 18f612f9960d5abee702b1bc1e0769ca26728793 /lib/sqlalchemy/util/__init__.py | |
| parent | 43f6ae639ca0186f4802255861acdc20f19e702f (diff) | |
| download | sqlalchemy-4999784664b9e73204474dd3dd91ee60fd174e3e.tar.gz | |
Initial ORM typing layout
introduces:
1. new mapped_column() helper
2. DeclarativeBase helper
3. declared_attr has been re-typed
4. rework of Mapped[] to return InstrumentedAtribute for
class get, so works without Mapped itself having expression
methods
5. ORM constructs now generic on [_T]
also includes some early typing work, most of which will
be in later commits:
1. URL and History become typing.NamedTuple
2. come up with type-checking friendly way of type
checking cy extensions, where type checking will be applied
to the py versions, just needed to come up with a succinct
conditional pattern for the imports
References: #6810
References: #7535
References: #7562
Change-Id: Ie5d9a44631626c021d130ca4ce395aba623c71fb
Diffstat (limited to 'lib/sqlalchemy/util/__init__.py')
| -rw-r--r-- | lib/sqlalchemy/util/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/util/__init__.py b/lib/sqlalchemy/util/__init__.py index 7c03bcd4b..203460c26 100644 --- a/lib/sqlalchemy/util/__init__.py +++ b/lib/sqlalchemy/util/__init__.py @@ -57,7 +57,6 @@ from .compat import dottedgetter from .compat import has_refcount_gc from .compat import inspect_getfullargspec from .compat import local_dataclass_fields -from .compat import namedtuple from .compat import next from .compat import osx from .compat import py38 @@ -74,6 +73,7 @@ from .deprecations import became_legacy_20 from .deprecations import deprecated from .deprecations import deprecated_cls from .deprecations import deprecated_params +from .deprecations import deprecated_property from .deprecations import inject_docstring_text from .deprecations import moved_20 from .deprecations import warn_deprecated @@ -128,6 +128,7 @@ from .langhelpers import safe_reraise from .langhelpers import set_creation_order from .langhelpers import string_or_unprintable from .langhelpers import symbol +from .langhelpers import TypingOnly from .langhelpers import unbound_method_to_callable from .langhelpers import walk_subclasses from .langhelpers import warn |
