Commit bd43f6ac authored by Jakob Lerch's avatar Jakob Lerch
Browse files

style(meeting.py): reformat argument list

parent e324b308
......@@ -8,11 +8,7 @@ from typing import Any, Iterator, Optional
class Topic:
def __init__(
self,
title: str,
body: str = None,
url: str = None,
parent: str = None
self, title: str, body: str = None, url: str = None, parent: str = None
) -> None:
self.title = title
self.body = body
......@@ -62,8 +58,7 @@ class Attendee:
if m_extra := re.match(r".+\((?P<extra>.*)\).*", self.raw):
extra = m_extra.group("extra")
object.__setattr__(self, "extra", extra.strip())
object.__setattr__(self, "name", self.raw.replace(
f"({extra})", "").strip())
object.__setattr__(self, "name", self.raw.replace(f"({extra})", "").strip())
else:
object.__setattr__(self, "name", self.raw.strip())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment