Skip to content

Commit feadd02

Browse files
JAVGanclaude
andcommitted
fix: use Union[] syntax for Python < 3.10 compatibility
Replace `float | Tuple[float, float]` union type annotation with `Union[float, Tuple[float, float]]` in StarmapSession.__init__ to maintain compatibility with Python versions older than 3.10, which do not support the PEP 604 `X | Y` syntax at runtime. Refers to SPSTRAT-731 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f260b64 commit feadd02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

starmap_client/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(
3636
api_version: str,
3737
retries: int = 3,
3838
backoff_factor: float = 2.0,
39-
timeout: float | Tuple[float, float] = 10.0,
39+
timeout: Union[float, Tuple[float, float]] = 10.0,
4040
):
4141
"""
4242
Create the StarmapSession object.

0 commit comments

Comments
 (0)