view mercurial/interfaces/types.py @ 52762:fecda9f44e57

interfaces: minor documentation tweaks to the `types` module
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 06 Feb 2025 20:03:57 -0500
parents 5c48fd4c0e68
children 2a5450ecde20
line wrap: on
line source

# mercurial/interfaces/types.py - type alias for interfaces
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
#
# This is the main entry point for Mercurial code writing type annotations.
#
# The general principle can be summarized when dealing with <FooBar> object:
# - to type your code: use FooBarT from `mercurial.interface.types`
# - to subclass <FooBar>: use IFooBar from `mercurial.interface.foo_bar`

from __future__ import annotations

from . import (
    _basetypes,
    matcher,
)

MatcherT = matcher.IMatcher

UserMsgT = _basetypes.UserMsgT
HgPathT = _basetypes.HgPathT
FsPathT = _basetypes.FsPathT