diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2022-05-16 02:32:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-05-16 02:32:44 +0000 |
commit | 5d080d17464712d33c0215d12513e529d848ee8c (patch) | |
tree | eec56f3138a48f55f2585a64f01b4fd9c14451b7 /lib/sqlalchemy/sql/base.py | |
parent | c4dad3695f4ab9fef3a4cb05893492afbec811f7 (diff) | |
parent | 18a73fb1d1c267842ead5dacd05a49f4344d8b22 (diff) | |
download | sqlalchemy-5d080d17464712d33c0215d12513e529d848ee8c.tar.gz |
Merge "revenge of pep 484" into main
Diffstat (limited to 'lib/sqlalchemy/sql/base.py')
-rw-r--r-- | lib/sqlalchemy/sql/base.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/base.py b/lib/sqlalchemy/sql/base.py index 248b48a25..f5a9c10c0 100644 --- a/lib/sqlalchemy/sql/base.py +++ b/lib/sqlalchemy/sql/base.py @@ -750,6 +750,17 @@ class _MetaOptions(type): o1.__dict__.update(other) return o1 + if TYPE_CHECKING: + + def __getattr__(self, key: str) -> Any: + ... + + def __setattr__(self, key: str, value: Any) -> None: + ... + + def __delattr__(self, key: str) -> None: + ... + class Options(metaclass=_MetaOptions): """A cacheable option dictionary with defaults.""" @@ -904,6 +915,17 @@ class Options(metaclass=_MetaOptions): else: return existing_options, exec_options + if TYPE_CHECKING: + + def __getattr__(self, key: str) -> Any: + ... + + def __setattr__(self, key: str, value: Any) -> None: + ... + + def __delattr__(self, key: str) -> None: + ... + class CacheableOptions(Options, HasCacheKey): __slots__ = () |