Skip to content

Commit 7b86d20

Browse files
committed
Fix typing
1 parent 800ef9a commit 7b86d20

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

aidbox_python_sdk/db.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import logging
3+
from typing import Optional
34

45
from aiohttp import BasicAuth, ClientSession
56
from sqlalchemy import (
@@ -73,11 +74,11 @@ def create_table(table_name):
7374

7475

7576
class DBProxy:
76-
_client: ClientSession | None = None
77+
_client: Optional[ClientSession] = None
7778
_settings: Settings
7879
_table_cache: dict
7980

80-
def __init__(self, settings: Settings, _table_cache: dict | None = None):
81+
def __init__(self, settings: Settings, _table_cache: Optional[dict] = None):
8182
self._settings = settings
8283
self._table_cache = _table_cache or {}
8384

0 commit comments

Comments
 (0)