aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-11-27 12:59:36 +0000
committerGravatar jesopo2019-11-27 12:59:36 +0000
commit2139c99562e44cdb053bd98efd9aaf74bab26bb7 (patch)
treebc98123385c7810dd361dee827852c79944a1a7d
parentdataclass-ify IRCBuffer.BufferLine, add .notes={} (diff)
signature
fix BufferLine.notes definition
-rw-r--r--src/IRCBuffer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/IRCBuffer.py b/src/IRCBuffer.py
index 5c0b75a2..c368660b 100644
--- a/src/IRCBuffer.py
+++ b/src/IRCBuffer.py
@@ -11,7 +11,8 @@ class BufferLine(object):
tags: dict
from_self: bool
method: str
- notes: typing.Dict[str, str] = {}
+ notes: typing.Dict[str, str] = dataclasses.field(
+ default_factory=dict)
class BufferLineMatch(object):
def __init__(self, line: BufferLine, match: str):