Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/interfaces/types.py Thu Feb 06 15:17:37 2025 -0500 +++ b/mercurial/interfaces/types.py Thu Feb 06 15:24:58 2025 -0500 @@ -11,13 +11,14 @@ from __future__ import annotations +from ._basetypes import ( + FsPathT, + HgPathT, + UserMsgT, +) + from . import ( - _basetypes, matcher, ) MatcherT = matcher.IMatcher - -UserMsgT = _basetypes.UserMsgT -HgPathT = _basetypes.HgPathT -FsPathT = _basetypes.FsPathT