]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
remove overlapping slots already defined in base classes
authorArie Bovenberg <a.c.bovenberg@gmail.com>
Wed, 19 Jan 2022 20:29:26 +0000 (21:29 +0100)
committerArie Bovenberg <a.c.bovenberg@gmail.com>
Tue, 1 Feb 2022 19:26:12 +0000 (20:26 +0100)
lib/sqlalchemy/dialects/mysql/aiomysql.py
lib/sqlalchemy/dialects/sqlite/aiosqlite.py
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/row.py
lib/sqlalchemy/orm/properties.py

index 975467c24f788fd62d071ebc69019b16ee28fe8d..df716346efa4a48733a4d99d48f4a4a68144ea6e 100644 (file)
@@ -179,7 +179,7 @@ class AsyncAdapt_aiomysql_ss_cursor(AsyncAdapt_aiomysql_cursor):
 
 class AsyncAdapt_aiomysql_connection(AdaptedConnection):
     await_ = staticmethod(await_only)
-    __slots__ = ("dbapi", "_connection", "_execute_mutex")
+    __slots__ = ("dbapi", "_execute_mutex")
 
     def __init__(self, dbapi, connection):
         self.dbapi = dbapi
index c73afc9d1c2eb33d6e66cc6373871970f09e6595..e88ab1a0fa80fe83085ee532b5799453b1243c07 100644 (file)
@@ -165,7 +165,7 @@ class AsyncAdapt_aiosqlite_ss_cursor(AsyncAdapt_aiosqlite_cursor):
 
 class AsyncAdapt_aiosqlite_connection(AdaptedConnection):
     await_ = staticmethod(await_only)
-    __slots__ = ("dbapi", "_connection")
+    __slots__ = ("dbapi",)
 
     def __init__(self, dbapi, connection):
         self.dbapi = dbapi
index b67a212c83c935a66a2eb80130f40613a817961a..4045eae907e7fc1b1416d4b2b9e2c2df7ee2a1a6 100644 (file)
@@ -2257,7 +2257,7 @@ class TwoPhaseTransaction(RootTransaction):
 
     """
 
-    __slots__ = ("connection", "is_active", "xid", "_is_prepared")
+    __slots__ = ("xid", "_is_prepared")
 
     def __init__(self, connection, xid):
         self._is_prepared = False
index 16215ccc47c0cee1ceb2c40afd3124f1adfd0df6..75c56450e2b7846c612d64e71d2e4d7cf99aa984 100644 (file)
@@ -194,10 +194,7 @@ class ROMappingView(
     collections_abc.ValuesView,
     collections_abc.ItemsView,
 ):
-    __slots__ = (
-        "_mapping",
-        "_items",
-    )
+    __slots__ = ("_items",)
 
     def __init__(self, mapping, items):
         self._mapping = mapping
index c4aac5a3851cce6ed55f06959a1f18d3a3d56934..b035dbef2f2b6fc13aad5793cbc92a3c05174a99 100644 (file)
@@ -64,7 +64,6 @@ class ColumnProperty(StrategizedProperty[_T]):
         "descriptor",
         "active_history",
         "expire_on_flush",
-        "info",
         "doc",
         "strategy_key",
         "_creation_order",