Philipp Hörist pushed to branch omemo_integration at gajim / gajim
Commits:
24c7ed1e by Philipp Hörist at 2022-10-20T21:31:03+02:00
cq: Fix linter errors
- - - - -
3 changed files:
- gajim/common/modules/omemo.py
- gajim/common/storage/omemo.py
- pyrightconfig.json
Changes:
=====================================
gajim/common/modules/omemo.py
=====================================
@@ -502,7 +502,7 @@ def clear_devicelist(self) -> None:
@as_task
def request_devicelist(self, jid: Optional[str] = None):
- _task = yield
+ _task = yield # noqa
if jid is None:
jid = self._own_jid
=====================================
gajim/common/storage/omemo.py
=====================================
@@ -633,7 +633,8 @@ def storeLocalData(self,
self._con.commit()
def saveIdentity(self, recipientId: int, identityKey: IdentityKey) -> None:
- query = '''INSERT INTO identities (recipient_id, public_key, trust,
shown)
+ query = '''INSERT INTO identities
+ (recipient_id, public_key, trust, shown)
VALUES(?, ?, ?, ?)'''
if not self.containsIdentity(recipientId, identityKey):
trust = self.getDefaultTrust(recipientId)
=====================================
pyrightconfig.json
=====================================
@@ -133,4 +133,5 @@
"gajim/plugins/plugins_i18n.py",
"gajim/plugins/repository.py"
],
+ "ignore": ["gajim/common/storage/*"]
}
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/24c7ed1e5a3450ad1e33ee62bf2f0af6fd538095
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/24c7ed1e5a3450ad1e33ee62bf2f0af6fd538095
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits