Skip to content

Commit

Permalink
Problem with f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
ahankinson committed Sep 12, 2024
1 parent add79bd commit fee0b64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion edtf/parser/parser_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,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):
strict_dates = [x._strict_date(lean) for x in self.objects]
Expand Down

0 comments on commit fee0b64

Please sign in to comment.