Skip to content

Commit ecd44d3

Browse files
Avoid syntax that isn't supported by Python 3.9.
1 parent aed092f commit ecd44d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/oracledb/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# Contains utility classes and methods.
2929
# -----------------------------------------------------------------------------
3030

31-
from typing import Any, Callable, Union
31+
from typing import Any, Callable, Optional, Union
3232

3333
from .arrow_array import ArrowArray
3434
from .dataframe import DataFrame
@@ -72,7 +72,7 @@ def from_arrow(obj: Any) -> Union[DataFrame, ArrowArray]:
7272

7373

7474
def normalize_sessionless_transaction_id(
75-
value: bytes | str | None = None,
75+
value: Optional[Union[bytes, str]] = None,
7676
) -> bytes:
7777
"""
7878
Normalize and validate the transaction_id.

0 commit comments

Comments
 (0)