Fix compat with older versions of python

This commit is contained in:
Ivan Habunek 2023-11-18 15:48:28 +01:00
parent 0265f7e0b7
commit 4a3b14313c
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ def _convert_with_error_handling(
data_class: Type,
field_name: str,
field_type: Type,
field_value: str | None
field_value: Optional[str]
):
try:
return _convert(field_type, field_value)