Skip to content

Commit 4e027ab

Browse files
authored
Apply suggestions from code review
1 parent 624d777 commit 4e027ab

File tree

1 file changed

+2
-2
lines changed
  • instrumentation/opentelemetry-instrumentation-sqlite3/src/opentelemetry/instrumentation/sqlite3

1 file changed

+2
-2
lines changed

instrumentation/opentelemetry-instrumentation-sqlite3/src/opentelemetry/instrumentation/sqlite3/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
import sqlite3
4545
from sqlite3 import dbapi2
46-
from typing import Any, Collection, TypeVar
46+
from typing import Any, Collection, TypeVar, Union
4747

4848
from opentelemetry.instrumentation import dbapi
4949
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
@@ -57,7 +57,7 @@
5757
_DATABASE_SYSTEM = "sqlite"
5858

5959
SQLite3Connection = TypeVar(
60-
"SQLite3Connection", bound=sqlite3.Connection | None
60+
"SQLite3Connection", bound=Union[sqlite3.Connection, None]
6161
)
6262

6363

0 commit comments

Comments
 (0)