Skip to content

Commit f868c54

Browse files
author
Andrei Bratu
committed
Python 3.10 fix
1 parent e598da6 commit f868c54

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/humanloop/decorators/tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def _build_function_parameters_property(func) -> _JSONSchemaFunctionParameters:
213213
)
214214

215215

216-
if sys.version_info >= (3, 10):
216+
if sys.version_info >= (3, 11):
217217
_PRIMITIVE_TYPES = Union[
218218
str,
219219
int,
@@ -223,7 +223,7 @@ def _build_function_parameters_property(func) -> _JSONSchemaFunctionParameters:
223223
Ellipsis, # type: ignore
224224
]
225225
else:
226-
# Ellipsis not supported in typing module before Python 3.10
226+
# Ellipsis not supported as type before Python 3.10
227227
_PRIMITIVE_TYPES = Union[
228228
str,
229229
int,

0 commit comments

Comments
 (0)