Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-canonicaljson for 
openSUSE:Factory checked in at 2023-03-01 16:14:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-canonicaljson (Old)
 and      /work/SRC/openSUSE:Factory/.python-canonicaljson.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-canonicaljson"

Wed Mar  1 16:14:26 2023 rev:15 rq:1068353 version:1.6.5

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-canonicaljson/python-canonicaljson.changes    
    2023-02-21 15:37:06.880656862 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-canonicaljson.new.31432/python-canonicaljson.changes
     2023-03-01 16:14:52.582855562 +0100
@@ -1,0 +2,6 @@
+Tue Feb 28 22:46:43 UTC 2023 - Marcus Rueckert <mrueck...@suse.de>
+
+- Update to 1.6.5
+  - Use a property to define JsonLibrary by @DMRobertson in #57
+
+-------------------------------------------------------------------

Old:
----
  v1.6.4.tar.gz

New:
----
  v1.6.5.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-canonicaljson.spec ++++++
--- /var/tmp/diff_new_pack.ldbcPJ/_old  2023-03-01 16:14:53.162858562 +0100
+++ /var/tmp/diff_new_pack.ldbcPJ/_new  2023-03-01 16:14:53.166858582 +0100
@@ -27,7 +27,7 @@
 %define         github_user matrix-org
 %define         short_name canonicaljson
 Name:           python-%{short_name}%{psuffix}
-Version:        1.6.4
+Version:        1.6.5
 Release:        0
 Summary:        Canonical JSON for Python
 License:        Apache-2.0

++++++ v1.6.4.tar.gz -> v1.6.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-canonicaljson-1.6.4/CHANGES.md 
new/python-canonicaljson-1.6.5/CHANGES.md
--- old/python-canonicaljson-1.6.4/CHANGES.md   2022-11-04 19:24:39.000000000 
+0100
+++ new/python-canonicaljson-1.6.5/CHANGES.md   2023-02-15 23:34:05.000000000 
+0100
@@ -1,3 +1,7 @@
+Version 1.6.5 released 2023-02-15
+
+* Update type hints to pass under mypy 1.0.
+
 Version 1.6.4 released 2022-11-04
 
 * Remove unused `setuptools_scm` build requirement.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-canonicaljson-1.6.4/src/canonicaljson/__init__.py 
new/python-canonicaljson-1.6.5/src/canonicaljson/__init__.py
--- old/python-canonicaljson-1.6.4/src/canonicaljson/__init__.py        
2022-11-04 19:24:39.000000000 +0100
+++ new/python-canonicaljson-1.6.5/src/canonicaljson/__init__.py        
2023-02-15 23:34:05.000000000 +0100
@@ -15,12 +15,12 @@
 # limitations under the License.
 
 import platform
-from typing import Any, Generator, Optional, Type
+from typing import Any, Generator, Iterator, Optional, Type
 
 try:
     from typing import Protocol
 except ImportError:  # pragma: no cover
-    from typing_extensions import Protocol  # type: ignore[misc]
+    from typing_extensions import Protocol  # type: ignore[assignment]
 
 frozendict_type: Optional[Type[Any]]
 try:
@@ -28,7 +28,7 @@
 except ImportError:
     frozendict_type = None  # pragma: no cover
 
-__version__ = "1.6.4"
+__version__ = "1.6.5"
 
 
 def _default(obj: object) -> object:  # pragma: no cover
@@ -44,15 +44,17 @@
     def encode(self, data: object) -> str:
         pass
 
-    def iterencode(self, data: object) -> Generator[str, None, None]:
+    def iterencode(self, data: object) -> Iterator[str]:
         pass
 
-    def __call__(self, *args: Any, **kwargs: Any) -> "Encoder":
+    def __init__(self, *args: Any, **kwargs: Any) -> None:
         pass
 
 
-class JsonLibrary(Protocol):
-    JSONEncoder: Encoder
+class JsonLibrary(Protocol):  # pragma: no cover
+    @property
+    def JSONEncoder(self) -> Type[Encoder]:
+        pass
 
 
 # Declare these in the module scope, but they get configured in
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-canonicaljson-1.6.4/tox.ini 
new/python-canonicaljson-1.6.5/tox.ini
--- old/python-canonicaljson-1.6.4/tox.ini      2022-11-04 19:24:39.000000000 
+0100
+++ new/python-canonicaljson-1.6.5/tox.ini      2023-02-15 23:34:05.000000000 
+0100
@@ -1,5 +1,5 @@
 [tox]
-envlist = packaging, pep8, black, py37, py38, py39, py310, pypy3
+envlist = packaging, pep8, black, py37, py38, py39, py310, pypy3, mypy, isort
 isolated_build = True
 
 [testenv:py]
@@ -32,7 +32,7 @@
 
 [testenv:mypy]
 deps =
-    mypy==0.942
+    mypy==1.0
     types-frozendict==2.0.8
     types-simplejson==3.17.5
     types-setuptools==57.4.14

Reply via email to