We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 800ef9a commit 7b86d20Copy full SHA for 7b86d20
aidbox_python_sdk/db.py
@@ -1,5 +1,6 @@
1
import json
2
import logging
3
+from typing import Optional
4
5
from aiohttp import BasicAuth, ClientSession
6
from sqlalchemy import (
@@ -73,11 +74,11 @@ def create_table(table_name):
73
74
75
76
class DBProxy:
- _client: ClientSession | None = None
77
+ _client: Optional[ClientSession] = None
78
_settings: Settings
79
_table_cache: dict
80
- def __init__(self, settings: Settings, _table_cache: dict | None = None):
81
+ def __init__(self, settings: Settings, _table_cache: Optional[dict] = None):
82
self._settings = settings
83
self._table_cache = _table_cache or {}
84
0 commit comments