Home
last modified time | relevance | path

Searched refs:_T (Results 1 – 9 of 9) sorted by relevance

/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/util/
H A D_clang.py123 _T = TypeVar('_T') variable
126 class CTypesCallable(Protocol[_T, _U]):
132 def argtypes(self) -> Sequence[type[_T]]: ...
134 def __call__(*args: _T) -> _U: ... argument
136 class ClangFunction(Generic[_T, _U]):
144 _function: CTypesCallable[_T, _U]
146 def __init__(self, function: CTypesCallable[_T, _U]) -> None: argument
206 def get_clang_function(name: str, arg_types: Sequence[type[_T]]) -> ClangFunction[_T, ctypes.c_uint… argument
210 …et_clang_function(name: str, arg_types: Sequence[type[_T]], ret_type: type[_U]) -> ClangFunction[_… argument
213 …function(name: str, arg_types: Sequence[type[_T]], ret_type: Optional[type[_U]] = None) -> ClangFu… argument
[all …]
H A D_timeout.py20 _T = TypeVar('_T') variable
22 …: int = 10, error_message: Optional[str] = None) -> Callable[[Callable[_P, _T]], Callable[_P, _T]]:
45 def decorator(func: Callable[_P, _T]) -> Callable[_P, _T]: argument
50 def wrapper(*args: _P.args, **kwargs: _P.kwargs) ->_T:
H A D_utility.py43 _T = TypeVar('_T') variable
45 …bprocess_check_returncode(ret: subprocess.CompletedProcess[_T]) -> subprocess.CompletedProcess[_T]: argument
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/
H A D_attr_cache.py10 _T = TypeVar('_T') variable
41 def _get_cached(self, attr: str, func: Callable[..., _T], *args, **kwargs) -> _T: argument
78 return TYPE_CAST(_T, cache[attr])
H A D_weak_list.py10 _T = TypeVar('_T') variable
12 class WeakList(List[_T]):
H A D_diag.py15 _T = TypeVar('_T') variable
214 def _inject_diag_map(cls, symbol: _T, diag_pairs: Iterable[tuple[str, str]]) -> _T: argument
269 def register(cls, *args: tuple[str, str]) -> Callable[[_T], _T]:
270 def decorator(symbol: _T) -> _T: argument
H A D_pool.py23 _T = TypeVar('_T') variable
187 def prune(container: list[_T]) -> list[_T]: argument
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/checks/
H A D_register.py12 _T = TypeVar('_T') variable
41 def __register_base(key: _T, value: _U, target_map: dict[_T, _U], exist_ok: bool) -> None: argument
/petsc/lib/petsc/bin/maint/
H A Dcheck_header_guard.py294 _T = TypeVar('_T', bound=Replacer) variable
296 def do_replacement(replacer: _T, lines: Iterable[str]) -> list[str]: argument
345 def replace_in_file(path: pathlib.Path, opts: argparse.Namespace, ReplacerCls: type[_T]) -> list[st… argument