添加注册登录功能
This commit is contained in:
@@ -6,9 +6,7 @@
|
||||
# the MIT License: https://www.opensource.org/licenses/mit-license.php
|
||||
|
||||
|
||||
"""Pool implementation classes.
|
||||
|
||||
"""
|
||||
"""Pool implementation classes."""
|
||||
from __future__ import annotations
|
||||
|
||||
import threading
|
||||
@@ -62,7 +60,7 @@ class QueuePool(Pool):
|
||||
|
||||
"""
|
||||
|
||||
_is_asyncio = False # type: ignore[assignment]
|
||||
_is_asyncio = False
|
||||
|
||||
_queue_class: Type[sqla_queue.QueueCommon[ConnectionPoolEntry]] = (
|
||||
sqla_queue.Queue
|
||||
@@ -271,7 +269,7 @@ class AsyncAdaptedQueuePool(QueuePool):
|
||||
|
||||
"""
|
||||
|
||||
_is_asyncio = True # type: ignore[assignment]
|
||||
_is_asyncio = True
|
||||
_queue_class: Type[sqla_queue.QueueCommon[ConnectionPoolEntry]] = (
|
||||
sqla_queue.AsyncAdaptedQueue
|
||||
)
|
||||
@@ -280,7 +278,7 @@ class AsyncAdaptedQueuePool(QueuePool):
|
||||
|
||||
|
||||
class FallbackAsyncAdaptedQueuePool(AsyncAdaptedQueuePool):
|
||||
_queue_class = sqla_queue.FallbackAsyncAdaptedQueue
|
||||
_queue_class = sqla_queue.FallbackAsyncAdaptedQueue # type: ignore[assignment] # noqa: E501
|
||||
|
||||
|
||||
class NullPool(Pool):
|
||||
@@ -358,7 +356,7 @@ class SingletonThreadPool(Pool):
|
||||
|
||||
"""
|
||||
|
||||
_is_asyncio = False # type: ignore[assignment]
|
||||
_is_asyncio = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user