Philipp Hörist pushed to branch typings at gajim / gajim


Commits:
e1e14f78 by Philipp Hörist at 2024-09-29T20:32:45+02:00
ci: Update pyright to 1.1.382

- - - - -
39de806c by Philipp Hörist at 2024-09-29T20:33:24+02:00
cq: Fix return type

- - - - -


2 changed files:

- .pre-commit-config.yaml
- gajim/common/storage/archive/storage.py


Changes:

=====================================
.pre-commit-config.yaml
=====================================
@@ -14,7 +14,7 @@ repos:
         - tomli
 
   - repo: https://github.com/RobertCraigie/pyright-python
-    rev: v1.1.365
+    rev: v1.1.382
     hooks:
     - id: pyright
       pass_filenames: false


=====================================
gajim/common/storage/archive/storage.py
=====================================
@@ -5,6 +5,7 @@
 from __future__ import annotations
 
 from typing import Any
+from typing import cast
 from typing import Literal
 
 import calendar
@@ -918,7 +919,7 @@ def get_first_message_meta_for_date(
     @timeit
     def get_recent_muc_nicks(
         self, session: Session, account: str, jid: JID
-    ) -> list[str]:
+    ) -> Sequence[str]:
         fk_account_pk = self._get_account_pk(session, account)
         fk_remote_pk = self._get_jid_pk(session, jid)
 
@@ -938,7 +939,7 @@ def get_recent_muc_nicks(
         )
 
         self._explain(session, stmt)
-        return list(session.scalars(stmt))
+        return cast(Sequence[str], session.scalars(stmt).all())
 
     @with_session
     @timeit



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/94415663f4f35941cd80ec7fd49a92da1502e7cd...39de806cd418a3ca12e0f259cfe16a2ea1925000

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/94415663f4f35941cd80ec7fd49a92da1502e7cd...39de806cd418a3ca12e0f259cfe16a2ea1925000
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to