diff mercurial/interfaces/types.py @ 52754:a7dcb7c1ff5a

typing: add a transaction protocol This allow us to remove the "external" import from mercurial/interfaces/dirstate.py, cutting one of the circular import route.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 07 Feb 2025 13:48:50 +0100
parents ae2848198462
children 3e8a3db5f5e8
line wrap: on
line diff
--- a/mercurial/interfaces/types.py	Fri Feb 07 16:40:49 2025 +0100
+++ b/mercurial/interfaces/types.py	Fri Feb 07 13:48:50 2025 +0100
@@ -21,6 +21,8 @@
 
 from . import (
     matcher,
+    transaction,
 )
 
 MatcherT = matcher.IMatcher
+TransactionT = transaction.ITransaction