mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 10:54:52 -04:00
Run Black. (#5482)
This commit is contained in:
parent
7dcf984075
commit
32e7c9e7f2
376 changed files with 9142 additions and 10388 deletions
|
@ -70,7 +70,8 @@ class JsonEncodedObject(object):
|
|||
dict
|
||||
"""
|
||||
d = {
|
||||
k: _encode(v) for (k, v) in self.__dict__.items()
|
||||
k: _encode(v)
|
||||
for (k, v) in self.__dict__.items()
|
||||
if k in self.valid_keys and k not in self.internal_keys
|
||||
}
|
||||
d.update(self.unrecognized_keys)
|
||||
|
@ -78,7 +79,8 @@ class JsonEncodedObject(object):
|
|||
|
||||
def get_internal_dict(self):
|
||||
d = {
|
||||
k: _encode(v, internal=True) for (k, v) in self.__dict__.items()
|
||||
k: _encode(v, internal=True)
|
||||
for (k, v) in self.__dict__.items()
|
||||
if k in self.valid_keys
|
||||
}
|
||||
d.update(self.unrecognized_keys)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue