From 8d1edd5374286793ad94f902f1e40fbe05c0db02 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Sat, 18 Nov 2023 11:25:52 +0100 Subject: [PATCH] Fix compat with older python versions --- toot/entities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toot/entities.py b/toot/entities.py index 4217e3bc..a330fa1b 100644 --- a/toot/entities.py +++ b/toot/entities.py @@ -383,7 +383,7 @@ def __init__( data_class: Type, field_name: str, field_type: Type, - field_value: str | None, + field_value: Optional[str] ): super().__init__( f"Failed converting field `{data_class.__name__}.{field_name}` " +