From 3ace0acddd162f58c4ac53e4aae3b827e6936c37 Mon Sep 17 00:00:00 2001 From: Wesley Kerfoot <378351+weskerfoot@users.noreply.github.com> Date: Sat, 28 Dec 2019 23:46:36 -0500 Subject: [PATCH] factory=list, not [] --- deletefb/types.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deletefb/types.py b/deletefb/types.py index fc51b84..5e294ee 100644 --- a/deletefb/types.py +++ b/deletefb/types.py @@ -22,7 +22,7 @@ def convert_date(text): @attr.s class Post: content = attr.ib() - comments = attr.ib(factory=[]) + comments = attr.ib(factory=list) date = attr.ib(factory=pendulum.now) name = attr.ib(factory=lambda: uuid.uuid4().hex) @@ -38,8 +38,8 @@ class Conversation: url = attr.ib() name = attr.ib() date : datetime = attr.ib(converter=convert_date) - messages = attr.ib(factory=[]) - image_links = attr.ib(factory=[]) + messages = attr.ib(factory=list) + image_links = attr.ib(factory=list) @attr.s class Message: