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


Commits:
04ea001d by Philipp Hörist at 2023-05-27T23:50:57+02:00
cq: Raise pyright version

- - - - -
9a7f27ea by Philipp Hörist at 2023-05-27T23:51:37+02:00
cq: GajimPlugin: Add type annotation

- - - - -


2 changed files:

- .pre-commit-config.yaml
- gajim/plugins/gajimplugin.py


Changes:

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


=====================================
gajim/plugins/gajimplugin.py
=====================================
@@ -15,6 +15,7 @@
 from __future__ import annotations
 
 from typing import Any
+from typing import Generator
 
 import logging
 import os
@@ -146,7 +147,7 @@ def __delitem__(self, key: str) -> None:
     def __contains__(self, key: str) -> bool:
         return key in self.data
 
-    def __iter__(self):
+    def __iter__(self) -> Generator[str, Any, None]:
         yield from self.data
 
     def keys(self):



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/b230d06a9d4e21182c0a6dcdb440d5a00d790c30...9a7f27ea9b7ceed516fc96732953a8c02bed47f3

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/b230d06a9d4e21182c0a6dcdb440d5a00d790c30...9a7f27ea9b7ceed516fc96732953a8c02bed47f3
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

Reply via email to