Commit 6f8890d7 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Don’t use dataclasses.asdict()

asdict() recurses into other objects, we don’t want this here
parent e3d66d9c
Pipeline #8396 failed with stages
in 2 minutes and 53 seconds
......@@ -197,7 +197,11 @@ class RosterItem:
def asdict(self):
return dataclasses.asdict(self)
return {'jid': self.jid,
'ask': self.ask,
'subscription': self.subscription,
'groups': self.groups}
class DiscoInfo(namedtuple('DiscoInfo', 'stanza identities features dataforms timestamp')):
Markdown is supported
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