Removed ``__getattr__()`` rule from ``sqlalchemy/__init__.py`` that
appeared to be trying to correct for a previous typographical error in the
imports. This rule interferes with type checking and is removed.
Fixes: #12588
Change-Id: I682b1f3c13b842d6f43ed02d28d9774b55477516
--- /dev/null
+.. change::
+ :tags: bug, typing
+ :tickets: 12588
+
+ Removed ``__getattr__()`` rule from ``sqlalchemy/__init__.py`` that
+ appeared to be trying to correct for a previous typographical error in the
+ imports. This rule interferes with type checking and is removed.
+
__go(locals())
-
-
-def __getattr__(name: str) -> Any:
- if name == "SingleonThreadPool":
- _util.warn_deprecated(
- "SingleonThreadPool was a typo in the v2 series. "
- "Please use the correct SingletonThreadPool name.",
- "2.0.24",
- )
- return SingletonThreadPool
- raise AttributeError(f"module {__name__!r} has no attribute {name!r}")