kopia lustrzana https://github.com/ihabunek/toot
Fix compat with older versions of python
rodzic
0265f7e0b7
commit
4a3b14313c
|
@ -437,7 +437,7 @@ def _convert_with_error_handling(
|
||||||
data_class: Type,
|
data_class: Type,
|
||||||
field_name: str,
|
field_name: str,
|
||||||
field_type: Type,
|
field_type: Type,
|
||||||
field_value: str | None
|
field_value: Optional[str]
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
return _convert(field_type, field_value)
|
return _convert(field_type, field_value)
|
||||||
|
|
Ładowanie…
Reference in New Issue