Skip to content

Commit 5d73f96

Browse files
committed
Refactor function signature to use typing.Union for lower version of python
1 parent 119318e commit 5d73f96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

function_schema/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def is_doc_meta(obj):
3838
"""
3939
return getattr(obj, '__class__') == Doc and hasattr(obj, 'documentation')
4040

41-
def unwrap_doc(obj: Doc | str):
41+
def unwrap_doc(obj: typing.Union[Doc, str]):
4242
"""
4343
Get the documentation string from the given object.
4444
Parameters:

0 commit comments

Comments
 (0)