comparison mercurial/interfaces/types.py @ 52914:3e8a3db5f5e8

typing: introduce a few basic alias for common types These types are passed everywhere. We introduce basic alias to Any, to make it simpler to start annotating code prior to introducing proper protocol for them.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 07 Feb 2025 23:00:31 +0100
parents a7dcb7c1ff5a
children
comparison
equal deleted inserted replaced
52913:6ee3c401882b 52914:3e8a3db5f5e8
13 13
14 from ._basetypes import ( # noqa: F401 (ignore imported but not used) 14 from ._basetypes import ( # noqa: F401 (ignore imported but not used)
15 CallbackCategoryT, 15 CallbackCategoryT,
16 FsPathT, 16 FsPathT,
17 HgPathT, 17 HgPathT,
18 RepoT,
19 UiT,
18 UserMsgT, 20 UserMsgT,
19 VfsKeyT, 21 VfsKeyT,
22 VfsT,
20 ) 23 )
21 24
22 from . import ( 25 from . import (
23 matcher, 26 matcher,
24 transaction, 27 transaction,