comparison mercurial/interfaces/types.py @ 52768: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
comparison
equal deleted inserted replaced
52767:ae2848198462 52768:a7dcb7c1ff5a
19 VfsKeyT, 19 VfsKeyT,
20 ) 20 )
21 21
22 from . import ( 22 from . import (
23 matcher, 23 matcher,
24 transaction,
24 ) 25 )
25 26
26 MatcherT = matcher.IMatcher 27 MatcherT = matcher.IMatcher
28 TransactionT = transaction.ITransaction