| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/util/ |
| H A D | _clang.py | 123 _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.py | 20 _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.py | 43 _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.py | 10 _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.py | 10 _T = TypeVar('_T') variable 12 class WeakList(List[_T]):
|
| H A D | _diag.py | 15 _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.py | 23 _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.py | 12 _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 D | check_header_guard.py | 294 _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
|