Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
rules.pyi42 linesDownload Raw Back to f2py
1from collections.abc import Callable, Iterable, Mapping
2from typing import Any, Final, Literal as L, TypeAlias
3from typing_extensions import TypeVar
4
5from .__version__ import version
6from .auxfuncs import _Bool, _Var
7
8###
9
10_VT = TypeVar("_VT", default=str)
11
12_Predicate: TypeAlias = Callable[[_Var], _Bool]
13_RuleDict: TypeAlias = dict[str, _VT]
14_DefDict: TypeAlias = dict[_Predicate, _VT]
15
16###
17
18f2py_version: Final = version
19numpy_version: Final = version
20
21options: Final[dict[str, bool]] = ...
22sepdict: Final[dict[str, str]] = ...
23
24generationtime: Final[int] = ...
25typedef_need_dict: Final[_DefDict[str]] = ...
26
27module_rules: Final[_RuleDict[str | list[str] | _RuleDict]] = ...
28routine_rules: Final[_RuleDict[str | list[str] | _DefDict | _RuleDict]] = ...
29defmod_rules: Final[list[_RuleDict[str | _DefDict]]] = ...
30rout_rules: Final[list[_RuleDict[str | Any]]] = ...
31aux_rules: Final[list[_RuleDict[str | Any]]] = ...
32arg_rules: Final[list[_RuleDict[str | Any]]] = ...
33check_rules: Final[list[_RuleDict[str | Any]]] = ...
34
35stnd: Final[dict[L[1, 2, 3, 4, 5, 6, 7, 8, 9, 0], L["st", "nd", "rd", "th"]]] = ...
36
37def buildmodule(m: Mapping[str, str | Any], um: Iterable[Mapping[str, str | Any]]) -> _RuleDict: ...
38def buildapi(rout: Mapping[str, str]) -> tuple[_RuleDict, str]: ...
39
40# namespace pollution
41k: str
42 
codekingpro/portable-devtools · Team Ai