Home
last modified time | relevance | path

Searched refs:bool (Results 1 – 25 of 70) sorted by relevance

123

/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/
H A D_scope.py56 def __lt__(self, other: Scope) -> bool:
60 def __gt__(self, other: Scope) -> bool:
64 def __le__(self, other: Scope) -> bool:
68 def __ge__(self, other: Scope) -> bool:
72 def __eq__(self, other: object) -> bool:
77 def __ne__(self, other: object) -> bool:
92 def is_parent_of(self, other: Scope) -> bool:
112 def is_child_of(self, other: Scope) -> bool:
H A D_util.py14 def verbose_print(*args, **kwargs) -> bool:
18 def no_system_includes(cursor: CursorLike, level: IndentLevel, **kwargs) -> bool:
26 def only_files(cursor: CursorLike, level: IndentLevel, **kwargs) -> bool:
51 def check_valid_type(t: clx.Type) -> bool:
72 def view_ast_from_cursor(cursor: CursorLike, pred: Callable[..., bool] = verbose_print, level: Inde… argument
100 …nt = 0, num_after_context: int = 0, num_context: int = 0, trim: bool = False, tight: bool = False)… argument
132 …after_context: int = 0, num_context: int = 0, view: bool = False, highlight: bool = True, trim: bo… argument
H A D_pool.py75 …g_lib: PathLike, clang_options: CXTranslationUnit, clang_compat_check: bool, werror: bool) -> None: argument
90 …ptions: Optional[CXTranslationUnit] = None, clang_compat_check: bool = True, werror: bool = False)… argument
310 …g_lib: PathLike, clang_options: CXTranslationUnit, clang_compat_check: bool, werror: bool) -> None: argument
508 …g_lib: PathLike, clang_options: CXTranslationUnit, clang_compat_check: bool, werror: bool) -> None: argument
H A D_src_pos.py81 def __eq__(self, other: object) -> bool:
84 def __lt__(self, other: SourceLocationLike) -> bool:
87 def __ge__(self, other: SourceLocationLike) -> bool:
295 def __eq__(self, other: SourceRangeLike) -> bool:
298 def __lt__(self, other: Union[SourceRangeLike, SourceLocationLike]) -> bool:
316 def __contains__(self, other: Union[SourceRangeLike, SourceLocationLike]) -> bool:
317 def contains(loc: Union[SourceRange, SourceLocation]) -> bool:
504 def overlaps(self, other: SourceRangeLike) -> bool:
H A D_patch.py40 def deleter(self) -> bool:
73 def is_deletion_superset_of(self, other: Delta) -> bool:
151 def _contiguous_extent(self) -> bool:
162 ret: bool = self._cache.setdefault(cache_entry, True)
207 def is_deletion_superset_of(self, other: Patch) -> bool:
H A D_diag.py29 def _fuzzy_get_attribute(self, in_diags: dict[str, str], in_attr: str) -> tuple[bool, str]:
308 def set(self, flag: str, value: bool) -> None: argument
324 def disabled_for(self, flag: str) -> bool:
339 def enabled_for(self, flag: str) -> bool:
593 def disabled(self) -> bool:
H A D_cursor.py442 …def has_internal_linkage_from_cursor(cls, cursor: CursorLike) -> tuple[bool, str, Optional[clx.Cur…
459 def check() -> tuple[bool, str, Optional[clx.Cursor]]:
475 def has_internal_linkage(self) -> tuple[bool, str, Optional[clx.Cursor]]:
715 def is_variadic_function_from_cursor(cursor: CursorLike) -> bool:
728 return TYPE_CAST(bool, cursor.type.is_function_variadic())
730 def is_variadic_function(self) -> bool:
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/
H A Dqueue_main.py90 _verbose: bool
94 def __init__(self, verbose: bool, print_prefix: str, lock: ParallelPool.LockType) -> None: argument
111 def __call__(self, *args, flush: bool = True, **kwargs) -> None: argument
135 clang_compat_check: bool, argument
141 verbose: bool, argument
142 werror: bool, argument
H A Dmain.py106 clang_compat_check: bool = True, argument
111 apply_patches: bool = False, argument
115 replace_tests: bool = False, argument
116 werror: bool = False argument
192 if bool(apply_patches) and bool(test_output_dir):
307 …t_parsers: Optional[list[argparse.ArgumentParser]] = None, advanced_help: bool = False) -> tuple[a… argument
332 …def add_bool_argument(prsr: ParserLike, *args, advanced: bool = False, **kwargs) -> argparse.Actio… argument
333 def str2bool(v: Union[str, bool]) -> bool: argument
334 if isinstance(v, bool):
422 …rgparse.ArgumentParser, namespace: argparse.Namespace, values: Union[str, bool, Sequence[Any], Non… argument
[all …]
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/checks/
H A D_util.py68 …lectiveXXX(linter: Linter, obj: Cursor, obj_type: clx.Type, func_cursor: Cursor, **kwargs) -> bool:
104 return bool(valid_func_name)
106 …j: Cursor, obj_type: clx.Type, func_cursor: Optional[Cursor] = None, valid_func: str = '') -> bool:
155 def check_is_PetscScalar_and_not_PetscReal(*args, **kwargs) -> bool:
172 def check_is_PetscReal_and_not_PetscScalar(*args, **kwargs) -> bool:
189 …ype(typename: str, linter: Linter, obj: Cursor, func_cursor: Cursor, valid_func: str = '') -> bool:
214 def check_int_is_not_PetscBool(linter: Linter, obj: Cursor, *args, **kwargs) -> bool:
235 def check_MPIInt_is_not_PetscInt(linter: Linter, obj: Cursor, *args, **kwargs) -> bool:
256 …j: Cursor, obj_type: clx.Type, func_cursor: Optional[Cursor] = None, valid_func: str = '') -> bool:
284 def check_is_petsc_object(linter: Linter, obj: Cursor) -> bool:
[all …]
H A D_register.py41 def __register_base(key: _T, value: _U, target_map: dict[_T, _U], exist_ok: bool) -> None: argument
49 def register_classid(struct_name: str, classid_name: str, exist_ok: bool = False) -> None: argument
69 def register_symbol_check(name: str, function: FunctionChecker, exist_ok: bool = False) -> None: argument
89 def register_doc_check(cursor_kind: clx.CursorKind, function: DocChecker, exist_ok: bool = False) -… argument
/petsc/lib/petsc/bin/maint/
H A Dcheck_header_guard.py25 verbose: bool
26 added: bool
29 def __init__(self, verbose: bool, path: pathlib.Path) -> None: argument
175 append_endif: bool
314 def is_pragma_once(line: str) -> bool:
317 def is_header_guard(prev_line: str, line: str) -> bool:
322 def is_match(prev_line: str, line: str) -> bool:
444 def str2bool(v: Union[str, bool]) -> bool: argument
445 if isinstance(v, bool):
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DLog.pyx256 def isActive(cls) -> bool:
365 def getActive(self) -> bool:
379 def setActive(self, flag: bool) -> None: argument
395 def __get__(self) -> bool:
403 def getVisible(self) -> bool:
417 def setVisible(self, flag: bool) -> None: argument
438 def __get__(self) -> bool:
501 def getActive(self) -> bool:
506 def setActive(self, flag: bool) -> None: argument
515 def __get__(self) -> bool:
[all …]
H A DSys.pyx10 devel: bool = False, argument
11 date: bool = False, argument
12 author: bool = False) -> tuple[int, int, int]: argument
63 def getVersionInfo(cls) -> dict[str, bool | int | str]:
89 def isInitialized(cls) -> bool:
102 def isFinalized(cls) -> bool:
203 flush: bool = False, argument
395 flag: bool, argument
450 def hasExternalPackage(cls, package: str) -> bool:
H A DOptions.pyx24 >>> a_bool = opts.getBool('a') # return the option value as 'bool'
144 def hasName(self, name: str) -> bool:
153 def used(self, name: str) -> bool:
162 …value: bool | int | float | Scalar | Sequence[bool] | Sequence[int] | Sequence[float] | Sequence[S…
193 elif isinstance(value, bool):
226 def getBool(self, name: str, default=None) -> bool:
H A DDMPlex.pyx35 …lf, dim: int, cells: Sequence[int], coords: Sequence[float], interpolate: bool | None = True, comm…
91bool | None = True, periodic: Sequence | str | int | bool | None = False, interpolate: bool | None…
150 interpolate: bool | None = True, comm: Comm | None = None) -> Self:
192 …def createFromFile(self, filename: str, plexname: str | None = "unnamed", interpolate: bool | None…
226 …def createCGNS(self, cgid: int, interpolate: bool | None = True, comm: Comm | None = None) -> Self:
254 …def createCGNSFromFile(self, filename: str, interpolate: bool | None = True, comm: Comm | None = N…
283 …def createExodusFromFile(self, filename: str, interpolate: bool | None = True, comm: Comm | None =…
312 …def createExodus(self, exoid: int, interpolate: bool | None = True, comm: Comm | None = None) -> S…
339 …def createGmsh(self, Viewer viewer, interpolate: bool | None = True, comm: Comm | None = None) -> …
377 def createCoordinateSpace(self, degree: int, localized: bool, project: bool) -> None: argument
[all …]
H A DDM.pyx349 def getUseNatural(self) -> bool:
356 useNatural : bool
368 def setUseNatural(self, useNatural : bool) -> None: argument
375 useNatural : bool
386 def setBasicAdjacency(self, useCone: bool, useClosure: bool) -> None: argument
393 useCone : bool
395 useClosure : bool
407 def getBasicAdjacency(self) -> tuple[bool, bool]:
414 useCone : bool
416 useClosure : bool
[all …]
H A DSpace.pyx261 def getSumConcatenate(self) -> bool:
280 def setSumConcatenate(self, concatenate: bool) -> None: argument
448 def getPolynomialTensor(self) -> bool:
468 def setPolynomialTensor(self, tensor: bool) -> None: argument
864 def getLagrangeContinuity(self) -> bool:
878 def setLagrangeContinuity(self, continuous: bool) -> None: argument
896 def getLagrangeTensor(self) -> bool:
910 def setLagrangeTensor(self, tensor: bool) -> None: argument
928 def getLagrangeTrimmed(self) -> bool:
942 def setLagrangeTrimmed(self, trimmed: bool) -> None: argument
/petsc/src/sys/tutorials/output/
H A Dex9f_2.out1 The bool value was set to F
2 The bool array was set to T F T
/petsc/src/binding/petsc4py/src/petsc4py/
H A Dtyping.py147 InsertModeSpec: TypeAlias = InsertMode | bool | None
163 ScatterModeSpec: TypeAlias = ScatterMode | bool | str | None
218 MatAssemblySpec: TypeAlias = Mat.AssemblyType | bool | None
387 TSPostEventFunction = Callable[[TS, NDArray[np.integer], float, Vec, bool], None]
/petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/
H A D_doc_section_base.py213 required: bool
220 solitary: bool
227 …me: str, required: bool = False, keywords: Optional[tuple[str, ...]] = None, titles: Optional[tupl… argument
282 def __bool__(self) -> bool:
283 return bool(self.lines())
299 def lines(self, headings_only: bool = False) -> list[tuple[SourceRange, str, Verdict]]: argument
379 def barren(self) -> bool:
416 def check_indent_allowed(self) -> bool:
659 found_description: bool
660 found_synopsis: bool
[all …]
H A D_doc_str.py61 def direct_match(self) -> bool:
64 def __bool__(self) -> bool:
150 def __contains__(self, section: SectionImpl) -> bool:
188 def find(self, heading: str, cache_result: bool = True, strict: bool = False) -> SectionBase: argument
285 def registered(self, section: SectionImpl) -> bool:
379 …def fuzzy_find_section(self, line: str, strict: bool = False, **kwargs) -> tuple[str, str, Section… argument
499 def _is_valid_docstring(cls, cursor: Cursor, raw: str, doc_extent: SourceRange) -> bool:
795 def _check_valid_cursor_linkage(self) -> bool:
/petsc/src/binding/petsc4py/test/
H A Dtest_object.py50 self.assertTrue(bool(self.obj))
53 self.assertTrue(bool(self.obj))
55 self.assertFalse(bool(self.obj))
135 self.assertFalse(bool(self.obj))
H A Dtest_sys.py29 self.assertTrue(isinstance(info['release'], bool))
/petsc/lib/petsc/bin/maint/petsclinter/
H A Dpyproject.toml35 "truthy-bool",

123