From 89f36924adf59d271aadc3df6ac3ea1454ccb093 Mon Sep 17 00:00:00 2001 From: Andrew Hankinson Date: Thu, 12 Sep 2024 15:59:23 +0200 Subject: [PATCH] Another f-string fix --- edtf/parser/parser_classes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edtf/parser/parser_classes.py b/edtf/parser/parser_classes.py index 0334738..14728f0 100644 --- a/edtf/parser/parser_classes.py +++ b/edtf/parser/parser_classes.py @@ -1083,7 +1083,8 @@ def parse_action(cls, toks): return cls(*args) def __str__(self): - return f"{{{", ".join([str(o) for o in self.objects])}}}" + repr: str = ", ".join([str(o) for o in self.objects]) + return f"{{{repr}}}" def _strict_date(self, lean: str = EARLIEST): if lean == LATEST: