From 4a3b14313c47b05610323567b6cac7555c64c29c Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Sat, 18 Nov 2023 15:48:28 +0100 Subject: [PATCH] Fix compat with older versions of python --- toot/entities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toot/entities.py b/toot/entities.py index 4c0478a..d5fffd3 100644 --- a/toot/entities.py +++ b/toot/entities.py @@ -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)