Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/interfaces/types.py @ 52767:ae2848198462
typing: add annotation to the public API of the transaction
This prepare official protocol for the transaction (itself motivated by breaking
the import cycle that slow pytype run to a crawl).
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 07 Feb 2025 16:40:49 +0100 |
parents | 4eede65d68cf |
children | a7dcb7c1ff5a |
comparison
equal
deleted
inserted
replaced
52766:4eede65d68cf | 52767:ae2848198462 |
---|---|
10 # - to subclass <FooBar>: use IFooBar from `mercurial.interface.foo_bar` | 10 # - to subclass <FooBar>: use IFooBar from `mercurial.interface.foo_bar` |
11 | 11 |
12 from __future__ import annotations | 12 from __future__ import annotations |
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 FsPathT, | 16 FsPathT, |
16 HgPathT, | 17 HgPathT, |
17 UserMsgT, | 18 UserMsgT, |
19 VfsKeyT, | |
18 ) | 20 ) |
19 | 21 |
20 from . import ( | 22 from . import ( |
21 matcher, | 23 matcher, |
22 ) | 24 ) |