comparison 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
comparison
equal deleted inserted replaced
52761:d13c2ae3c340 52762:fecda9f44e57
5 # 5 #
6 # This is the main entry point for Mercurial code writing type annotations. 6 # This is the main entry point for Mercurial code writing type annotations.
7 # 7 #
8 # The general principle can be summarized when dealing with <FooBar> object: 8 # The general principle can be summarized when dealing with <FooBar> object:
9 # - to type your code: use FooBarT from `mercurial.interface.types` 9 # - to type your code: use FooBarT from `mercurial.interface.types`
10 # - to implement foobar: use IFoorbar 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 . import ( 14 from . import (
15 _basetypes, 15 _basetypes,