Skip to content

Commit d1c68fc

Browse files
committed
fixed FLAKE8 style
Signed-off-by: Victor Lee <victorlee0505@gmail.com>
1 parent df93c0b commit d1c68fc

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

aries_cloudagent/messaging/models/light_webhook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(
3232
[
3333
self.__setattr__(key, kwargs.get(key))
3434
for key in self.__acceptable_keys_list
35-
if kwargs.get(key) != None
35+
if kwargs.get(key) is not None
3636
]
3737
if version == 2:
3838
self.cred_ex_id = kwargs.get("_id")

aries_cloudagent/protocols/issue_credential/v1_0/models/credential_exchange.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,11 @@ async def emit_event(self, session: ProfileSession, payload: Any = None):
242242

243243
if not payload:
244244
payload = self.serialize()
245-
245+
246246
if session.profile.settings.get("transport.light_weight_webhook"):
247247
payload = LightWeightWebhook(1, **self.__dict__)
248248
payload = payload.__dict__
249-
249+
250250
await session.profile.notify(topic, payload)
251251

252252
@property

aries_cloudagent/protocols/issue_credential/v2_0/models/cred_ex_record.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,13 @@ async def emit_event(self, session: ProfileSession, payload: Any = None):
202202

203203
if not payload:
204204
payload = self.serialize()
205-
205+
206206
if session.profile.settings.get("transport.light_weight_webhook"):
207207
payload = LightWeightWebhook(2, **self.__dict__)
208208
payload = payload.__dict__
209-
209+
210210
await session.profile.notify(topic, payload)
211-
211+
212212
@property
213213
def record_value(self) -> Mapping:
214214
"""Accessor for the JSON record value generated for this credential exchange."""

0 commit comments

Comments
 (0)