Add slots in the proxy cursor and connection classes in the aiomysql dialect
Change-Id: If72fccf0cc16557a7e3a0c9450733c8337bec15a
class AsyncAdapt_aiomysql_cursor:
server_side = False
+ __slots__ = (
+ "_adapt_connection",
+ "_connection",
+ "await_",
+ "_cursor",
+ "_rows",
+ )
def __init__(self, adapt_connection):
self._adapt_connection = adapt_connection
class AsyncAdapt_aiomysql_ss_cursor(AsyncAdapt_aiomysql_cursor):
-
+ __slots__ = ()
server_side = True
def __init__(self, adapt_connection):
class AsyncAdapt_aiomysql_connection:
await_ = staticmethod(await_only)
+ __slots__ = ("dbapi", "_connection")
def __init__(self, dbapi, connection):
self.dbapi = dbapi