Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-jaraco.context for 
openSUSE:Factory checked in at 2025-09-30 17:35:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jaraco.context (Old)
 and      /work/SRC/openSUSE:Factory/.python-jaraco.context.new.11973 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jaraco.context"

Tue Sep 30 17:35:01 2025 rev:10 rq:1307772 version:6.0.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-jaraco.context/python-jaraco.context.changes  
    2025-07-23 16:33:54.112836803 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jaraco.context.new.11973/python-jaraco.context.changes
   2025-09-30 17:35:36.108148087 +0200
@@ -1,0 +2,6 @@
+Mon Sep 29 11:52:00 UTC 2025 - Dirk Müller <[email protected]>
+
+- update to 6.0.1:
+  * Removed type declarations as suggested by Gemini.
+
+-------------------------------------------------------------------

Old:
----
  jaraco_context-6.0.0.tar.gz

New:
----
  jaraco_context-6.0.1.tar.gz

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

Other differences:
------------------
++++++ python-jaraco.context.spec ++++++
--- /var/tmp/diff_new_pack.tFTyHg/_old  2025-09-30 17:35:37.260196690 +0200
+++ /var/tmp/diff_new_pack.tFTyHg/_new  2025-09-30 17:35:37.264196858 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-jaraco.context
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-jaraco.context
-Version:        6.0.0
+Version:        6.0.1
 Release:        0
 Summary:        Tools to work with functools
 License:        MIT

++++++ jaraco_context-6.0.0.tar.gz -> jaraco_context-6.0.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jaraco_context-6.0.0/NEWS.rst 
new/jaraco_context-6.0.1/NEWS.rst
--- old/jaraco_context-6.0.0/NEWS.rst   2024-08-20 00:48:18.000000000 +0200
+++ new/jaraco_context-6.0.1/NEWS.rst   2024-08-20 05:39:01.000000000 +0200
@@ -1,3 +1,12 @@
+v6.0.1
+======
+
+Bugfixes
+--------
+
+- Removed type declarations as suggested by Gemini. (#13)
+
+
 v6.0.0
 ======
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jaraco_context-6.0.0/PKG-INFO 
new/jaraco_context-6.0.1/PKG-INFO
--- old/jaraco_context-6.0.0/PKG-INFO   2024-08-20 00:48:40.072700300 +0200
+++ new/jaraco_context-6.0.1/PKG-INFO   2024-08-20 05:39:22.732852700 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: jaraco.context
-Version: 6.0.0
+Version: 6.0.1
 Summary: Useful decorators and context managers
 Author-email: "Jason R. Coombs" <[email protected]>
 Project-URL: Source, https://github.com/jaraco/jaraco.context
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jaraco_context-6.0.0/jaraco/context/__init__.py 
new/jaraco_context-6.0.1/jaraco/context/__init__.py
--- old/jaraco_context-6.0.0/jaraco/context/__init__.py 2024-08-20 
00:48:18.000000000 +0200
+++ new/jaraco_context-6.0.1/jaraco/context/__init__.py 2024-08-20 
05:39:01.000000000 +0200
@@ -11,9 +11,8 @@
 import subprocess
 import sys
 import tempfile
-import types
 import urllib.request
-from typing import Iterator, TypeVar, Union, Optional, Callable, Type, Tuple
+from typing import Iterator
 
 
 if sys.version_info < (3, 12):
@@ -21,12 +20,9 @@
 else:
     import tarfile
 
-PathLike = Union[str, os.PathLike]
-T = TypeVar('T')
-
 
 @contextlib.contextmanager
-def pushd(dir: PathLike) -> Iterator[PathLike]:
+def pushd(dir: str | os.PathLike) -> Iterator[str | os.PathLike]:
     """
     >>> tmp_path = getfixture('tmp_path')
     >>> with pushd(tmp_path):
@@ -44,8 +40,8 @@
 
 @contextlib.contextmanager
 def tarball(
-    url: str, target_dir: str | os.PathLike | None = None
-) -> Iterator[PathLike]:
+    url, target_dir: str | os.PathLike | None = None
+) -> Iterator[str | os.PathLike]:
     """
     Get a URL to a tarball, download, extract, yield, then clean up.
 
@@ -96,11 +92,7 @@
     return member
 
 
-CM = TypeVar('CM', bound=contextlib.AbstractContextManager)
-"""Type var for context managers."""
-
-
-def _compose(*cmgrs: Callable[..., CM]) -> Callable[..., CM]:
+def _compose(*cmgrs):
     """
     Compose any number of dependent context managers into a single one.
 
@@ -159,7 +151,7 @@
 
 
 @contextlib.contextmanager
-def temp_dir(remover: Callable[[str], None] = shutil.rmtree) -> Iterator[str]:
+def temp_dir(remover=shutil.rmtree):
     """
     Create a temporary directory context. Pass a custom remover
     to override the removal behavior.
@@ -181,10 +173,7 @@
 
 @contextlib.contextmanager
 def repo_context(
-    url,
-    branch: str | None = None,
-    quiet: bool = True,
-    dest_ctx: Callable[[], contextlib.AbstractContextManager[str]] = 
robust_temp_dir,
+    url, branch: str | None = None, quiet: bool = True, 
dest_ctx=robust_temp_dir
 ):
     """
     Check out the repo indicated by url.
@@ -207,7 +196,7 @@
         yield repo_dir
 
 
-class ExceptionTrap(contextlib.AbstractContextManager):
+class ExceptionTrap:
     """
     A context manager that will catch certain exceptions and provide an
     indication they occurred.
@@ -241,13 +230,9 @@
     False
     """
 
-    exc_info: Tuple[
-        Optional[Type[BaseException]],
-        Optional[BaseException],
-        Optional[types.TracebackType],
-    ] = (None, None, None)  # Explicitly type the tuple
+    exc_info = None, None, None
 
-    def __init__(self, exceptions: Tuple[Type[BaseException], ...] = 
(Exception,)):
+    def __init__(self, exceptions=(Exception,)):
         self.exceptions = exceptions
 
     def __enter__(self):
@@ -275,9 +260,7 @@
     def __bool__(self):
         return bool(self.type)
 
-    def raises(
-        self, func: Callable[..., T], *, _test: Callable[[ExceptionTrap], 
bool] = bool
-    ):
+    def raises(self, func, *, _test=bool):
         """
         Wrap func and replace the result with the truth
         value of the trap (True if an exception occurred).
@@ -304,7 +287,7 @@
 
         return wrapper
 
-    def passes(self, func: Callable[..., T]) -> Callable[..., bool]:
+    def passes(self, func):
         """
         Wrap func and replace the result with the truth
         value of the trap (True if no exception).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jaraco_context-6.0.0/jaraco.context.egg-info/PKG-INFO 
new/jaraco_context-6.0.1/jaraco.context.egg-info/PKG-INFO
--- old/jaraco_context-6.0.0/jaraco.context.egg-info/PKG-INFO   2024-08-20 
00:48:40.000000000 +0200
+++ new/jaraco_context-6.0.1/jaraco.context.egg-info/PKG-INFO   2024-08-20 
05:39:22.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: jaraco.context
-Version: 6.0.0
+Version: 6.0.1
 Summary: Useful decorators and context managers
 Author-email: "Jason R. Coombs" <[email protected]>
 Project-URL: Source, https://github.com/jaraco/jaraco.context

Reply via email to