mercurial/util.py
changeset 52877 9a8815128679
parent 52876 7a6fc0e2a89a
child 52878 7ca9c05ec335
--- a/mercurial/util.py	Fri Dec 20 19:32:02 2024 -0500
+++ b/mercurial/util.py	Sat Feb 08 00:14:20 2025 -0500
@@ -1428,20 +1428,20 @@
     """Base class for making a transactional type into a context manager."""
 
     @abc.abstractmethod
-    def close(self):
+    def close(self) -> None:
         """Successfully closes the transaction."""
 
     @abc.abstractmethod
-    def release(self):
+    def release(self) -> None:
         """Marks the end of the transaction.
 
         If the transaction has not been closed, it will be aborted.
         """
 
-    def __enter__(self):
+    def __enter__(self) -> Self:
         return self
 
-    def __exit__(self, exc_type, exc_val, exc_tb):
+    def __exit__(self, exc_type, exc_val, exc_tb) -> None:
         try:
             if exc_type is None:
                 self.close()