comparison mercurial/interfaces/types.py @ 52764:2a5450ecde20

interfaces: direct import the basetypes into the `types` module This is equivalent code, but PyCharm fails to propagate the doc comments to tooltips in client modules that import from `types` with the previous aliasing.
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 06 Feb 2025 15:24:58 -0500
parents fecda9f44e57
children 4eede65d68cf
comparison
equal deleted inserted replaced
52763:aa948d9e3fee 52764:2a5450ecde20
9 # - to type your code: use FooBarT from `mercurial.interface.types` 9 # - to type your code: use FooBarT from `mercurial.interface.types`
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 (
15 FsPathT,
16 HgPathT,
17 UserMsgT,
18 )
19
14 from . import ( 20 from . import (
15 _basetypes,
16 matcher, 21 matcher,
17 ) 22 )
18 23
19 MatcherT = matcher.IMatcher 24 MatcherT = matcher.IMatcher
20
21 UserMsgT = _basetypes.UserMsgT
22 HgPathT = _basetypes.HgPathT
23 FsPathT = _basetypes.FsPathT