| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/ |
| H A D | _util.py | 14 def verbose_print(*args, **kwargs) -> bool: argument 18 def no_system_includes(cursor: CursorLike, level: IndentLevel, **kwargs) -> bool: argument 26 def only_files(cursor: CursorLike, level: IndentLevel, **kwargs) -> bool: argument 30 filename = kwargs['filename'] 72 …] = verbose_print, level: IndentLevel = IndentLevel(), max_depth: int = -1, **kwargs) -> list[str]: argument 80 if pred(cursor, level, **kwargs): 87 view_ast_from_cursor(c, pred=pred, level=level + 1, max_depth=max_depth, **kwargs) 95 def read_file_lines_cached(*args, **kwargs) -> list[str]: argument 96 with open(*args, **kwargs) as fd: 129 def get_raw_source_from_cursor(cursor: CursorLike, **kwargs) -> str: argument [all …]
|
| H A D | _src_pos.py | 164 def _get_src(self, func: Callable[..., str], *args, **kwargs) -> str: argument 168 return func(SourceRange.from_locations(self, right), *args, **kwargs) 170 def raw(self, *args, **kwargs) -> str: argument 185 return self._get_src(SourceRange.raw, *args, **kwargs) 187 def formatted(self, *args, **kwargs) -> str: argument 202 return self._get_src(SourceRange.formatted, *args, **kwargs) 566 def raw(self, *args, **kwargs) -> str: argument 581 return _util.get_raw_source_from_source_range(self, *args, **kwargs) 584 def formatted(self, *args, **kwargs) -> str: argument 599 return _util.get_formatted_source_from_source_range(self, *args, **kwargs) [all …]
|
| H A D | _cursor.py | 480 def get_raw_source_from_cursor(cursor: CursorLike, **kwargs) -> str: argument 495 return _util.get_raw_source_from_cursor(cursor, **kwargs) 497 def raw(self, **kwargs) -> str: argument 499 return self.get_raw_source_from_cursor(self, **kwargs) 502 def get_formatted_source_from_cursor(cls, cursor: CursorLike, **kwargs) -> str: argument 526 return _util.get_formatted_source_from_source_range(extent, **kwargs) 528 def formatted(self, **kwargs) -> str: argument 530 return self.get_formatted_source_from_cursor(self, **kwargs) 532 def view(self, **kwargs) -> None: argument 542 kwargs.setdefault('num_context', 5) [all …]
|
| H A D | _attr_cache.py | 41 def _get_cached(self, attr: str, func: Callable[..., _T], *args, **kwargs) -> _T: argument 79 ret = cache[attr] = func(*args, **kwargs)
|
| H A D | _diag.py | 110 def update(self, obj: Any, other: Iterable[str], **kwargs) -> None: argument 115 self._diags['__general'].update(dmap, **kwargs) 119 self._diags[qual_name].update(dmap, **kwargs) 468 …attable(message: str, crange: Optional[Formattable] = None, num_context: int = 2, **kwargs) -> str: argument 493 … str, msg: str, src_range: SourceRangeLike, patch: Optional[Patch] = None, **kwargs) -> Diagnostic: argument 525 cls.make_message_from_formattable(msg, crange=src_range, **kwargs),
|
| H A D | _pool.py | 68 def _vprint(self: PoolImpl, *args, **kwargs) -> None: argument 71 pl.sync_print(*args, **kwargs) 242 def lock_sync_print(*args, **kwargs) -> None: argument 244 old_sync_print(*args, **kwargs)
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/ |
| H A D | _doc_section.py | 35 def __init__(self, *args, **kwargs) -> None: argument 45 kwargs.setdefault('name', 'UNKNOWN_SECTION') 46 kwargs.setdefault('titles', ('__UNKNOWN_SECTION__',)) 47 super().__init__(*args, **kwargs) 414 def __init__(self, *args, **kwargs) -> None: argument 424 kwargs.setdefault( 427 kwargs.setdefault('keywords', ('Input', 'Output', 'Calling sequence of', 'Calling Sequence Of')) 428 super().__init__(*args, **kwargs) 860 def __init__(self, *args, **kwargs) -> None: argument 870 kwargs.setdefault('name', 'options') [all …]
|
| H A D | _doc_str.py | 153 def _print(self, *args, verbosity = 1, **kwargs) -> None: argument 168 pl.sync_print(*args, **kwargs) 379 …def fuzzy_find_section(self, line: str, strict: bool = False, **kwargs) -> tuple[str, str, Section… argument 411 section = self.find(attempt, **kwargs) 693 …ange: Optional[Union[SourceRange, Cursor]], patch: Optional[Patch] = None, **kwargs) -> Diagnostic: argument 719 return Diagnostic.from_source_range(kind, diag_flag, msg, src_range, patch=patch, **kwargs) 721 …elf, kind: DiagnosticKind, diag_flag: str, msg: str, src_range: SourceRangeLike, **kwargs) -> None: argument 737 return self.add_diagnostic(self.make_diagnostic(kind, diag_flag, msg, src_range, **kwargs)) 765 def guess_heading(self, line: str, **kwargs) -> tuple[str, str, SectionBase]: argument 767 return self.sections.fuzzy_find_section(line, **kwargs)
|
| H A D | _doc_section_base.py | 708 def __init__(self, *args, **kwargs) -> None: argument 718 kwargs.setdefault('name', 'synopsis') 719 kwargs.setdefault('required', True) 720 kwargs.setdefault('keywords', ('Synopsis', 'Not Collective')) 721 super().__init__(*args, **kwargs) 849 def __init__(self, *args, prefixes: Optional[tuple[str, ...]] = None, **kwargs) -> None: argument 861 kwargs.setdefault('name', 'parameters') 862 super().__init__(*args, **kwargs) 1115 def __init__(self, *args, **kwargs) -> None: argument 1125 kwargs.setdefault('solitary', False) [all …]
|
| /petsc/config/BuildSystem/ |
| H A D | logger.py | 41 …ld_multiline_message(sup_title, text, divider_char = None, length = None, prefix = None, **kwargs): argument 50 kwargs.setdefault('break_on_hyphens',False) 51 kwargs.setdefault('break_long_words',False) 52 kwargs.setdefault('width',length-2) 53 kwargs.setdefault('initial_indent',prefix) 54 kwargs.setdefault('subsequent_indent',prefix) 57 line for para in text.splitlines() for line in textwrap.wrap(textwrap.dedent(para),**kwargs) 83 def build_multiline_error_message(sup_title, text, **kwargs): argument 84 kwargs.setdefault('divider_char', '-') 85 kwargs.setdefault('length', get_global_divider_length()) [all …]
|
| /petsc/lib/petsc/bin/maint/ |
| H A D | gcov.py | 24 def __init__(self, *args, **kwargs): argument 27 self.setup(*args, **kwargs) 44 def __log(stream, *args, **kwargs): argument 45 kwargs.setdefault('file', stream) 46 print(*args, **kwargs) 49 def log(self, *args, **kwargs): argument 51 self.__log(self.stdout, *args, **kwargs) 54 def log_error(self, *args, **kwargs): argument 55 self.__log(self.stderr, *args, **kwargs) 190 def call_subprocess(func, *args, error_ok=False, **kwargs): argument [all …]
|
| H A D | generateetags.py | 19 def check_output(*popenargs, **kwargs): argument 23 if 'stdout' in kwargs: 25 process = subprocess.Popen(stdout=subprocess.PIPE, *popenargs, **kwargs) 29 cmd = kwargs.get("args")
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/ |
| H A D | main.py | 185 def root_sync_print(*args, **kwargs) -> None: argument 186 if args or kwargs: 187 print('[ROOT]', *args, **kwargs) 325 def add_argument(self, *args, **kwargs) -> argparse.Action: ... argument 327 def add_advanced_argument(prsr: ParserLike, *args, **kwargs) -> argparse.Action: argument 329 kwargs['help'] = argparse.SUPPRESS 330 return prsr.add_argument(*args, **kwargs) 332 …def add_bool_argument(prsr: ParserLike, *args, advanced: bool = False, **kwargs) -> argparse.Actio… argument 343 kwargs.setdefault('nargs', '?') 344 kwargs.setdefault('const', True) [all …]
|
| H A D | queue_main.py | 27 def __init__(self, filename: str, *args, **kwargs) -> None: argument 28 super().__init__(*args, **kwargs) 111 def __call__(self, *args, flush: bool = True, **kwargs) -> None: argument 128 if args or kwargs: 130 print(self._print_prefix, *args, flush=flush, **kwargs)
|
| H A D | _typing.py | 103 def formatted(self, **kwargs: Any) -> str: 106 def raw(self, **kwargs: Any) -> str:
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/checks/ |
| H A D | _util.py | 68 …lectiveXXX(linter: Linter, obj: Cursor, obj_type: clx.Type, func_cursor: Cursor, **kwargs) -> bool: argument 155 def check_is_PetscScalar_and_not_PetscReal(*args, **kwargs) -> bool: argument 170 return check_is_type_x_and_not_type_y('PetscScalar', 'PetscReal', *args, **kwargs) 172 def check_is_PetscReal_and_not_PetscScalar(*args, **kwargs) -> bool: argument 187 return check_is_type_x_and_not_type_y('PetscReal', 'PetscScalar', *args, **kwargs) 214 def check_int_is_not_PetscBool(linter: Linter, obj: Cursor, *args, **kwargs) -> bool: argument 233 return check_is_not_type('PetscBool', linter, obj, **kwargs) 235 def check_MPIInt_is_not_PetscInt(linter: Linter, obj: Cursor, *args, **kwargs) -> bool: argument 254 return check_is_not_type('PetscInt', linter, obj, **kwargs) 646 permissive: bool = False, pointer_depth: int = 1, **kwargs argument [all …]
|
| H A D | _code.py | 111 … Linter, func: Cursor, parent: Cursor, expected_types: Collection[clx.TypeKind], **kwargs) -> None: argument 132 kwargs.setdefault('func_cursor', func) 133 kwargs.setdefault('failure_function', convert_to_correct_PetscValidLogicalCollectiveXXX) 134 check_matching_specific_type(linter, obj, expected_types, False, **kwargs)
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/util/ |
| H A D | _timeout.py | 50 def wrapper(*args: _P.args, **kwargs: _P.kwargs) ->_T: argument 55 result = func(*args, **kwargs)
|
| H A D | _utility.py | 77 def subprocess_capture_output(*args, **kwargs) -> subprocess.CompletedProcess[str]: argument 100 old_check = kwargs.get('check', True) 101 kwargs['check'] = False 102 ret = subprocess.run(*args, capture_output=True, universal_newlines=True, **kwargs) 327 def __exit__(self, *args, **kwargs) -> None: argument 372 def verbose_print(*args, **kwargs) -> None: argument 374 pl.sync_print(*args, **kwargs)
|
| /petsc/config/BuildSystem/config/ |
| H A D | util.py | 8 def classify(items, functional, args=(), kwargs=dict()): argument 23 result = functional(items, *args, **kwargs) 41 g, b = classify(grp, functional, args, kwargs)
|
| /petsc/src/binding/petsc4py/docs/source/ |
| H A D | conf.py | 245 def __init__(self, *args, **kwargs): argument 246 super().__init__(*args, **kwargs) 284 def wrapper(*args, **kwargs): argument 285 out = _parse_returns_section(*args, **kwargs) 302 def wrapper(*args, **kwargs): argument 303 out = _parse_numpydoc_see_also_section(*args, **kwargs)
|
| /petsc/share/petsc/ |
| H A D | chkerrconvert.py | 211 def subprocess_run(*args,**kwargs): argument 213 kwargs.setdefault('stdout',subprocess.PIPE) 214 kwargs.setdefault('stderr',subprocess.PIPE) 216 kwargs.setdefault('capture_output',True) 217 return subprocess.run(args,**kwargs)
|
| /petsc/lib/petsc/bin/ |
| H A D | PetscBinaryIO.py | 67 def decorated_f(self, *args, **kwargs): argument 86 self.precision = kwargs.pop('precision') 93 self.indices = kwargs.pop('indices') 100 self.complexscalars = kwargs.pop('complexscalars') 109 result = f(self, *args, **kwargs)
|
| H A D | getAPI.py | 54 def __init__(self, name, mansec, includefile, value, *args, **kwargs): argument 67 def __init__(self, name, *args, **kwargs): argument 92 …it__(self, name = None, typename = None, stars = 0, array = False, const = False, *args, **kwargs): argument 121 def __init__(self, name, mansec, includefile, opaque, records, *args, **kwargs): argument 139 def __init__(self, rawrecord, *args, **kwargs): argument 150 def __init__(self, name, mansec, includefile, values, *args, **kwargs): argument 165 def __init__(self, name, mansec, includefile, values, *args, **kwargs): argument 180 def __init__(self, mansec, includefile, included, *args, **kwargs): argument 193 def __init__(self, name, *args, **kwargs): argument
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_dmplex.py | 428 def wrapper(self, *args, **kwargs): argument 431 return method(self, *args, **kwargs) 437 def wrapper(self, *args, **kwargs): argument 444 return method(self, *args, **kwargs) 450 def wrapper(self, *args, **kwargs): argument 453 return method(self, *args, **kwargs)
|