Home
last modified time | relevance | path

Searched defs:AnyStr (Results 1 – 15 of 15) sorted by relevance

/external/python/pyfakefs/pyfakefs/
Dfake_path.py130 def exists(self, path: AnyStr) -> bool:
141 def lexists(self, path: AnyStr) -> bool:
152 def getsize(self, path: AnyStr):
170 def isabs(self, path: AnyStr) -> bool:
186 def isdir(self, path: AnyStr) -> bool:
190 def isfile(self, path: AnyStr) -> bool:
194 def islink(self, path: AnyStr) -> bool:
210 def isjunction(self, path: AnyStr) -> bool:
214 def splitroot(self, path: AnyStr):
228 def getmtime(self, path: AnyStr) -> float:
[all …]
Dfake_os.py221 path: AnyStr,
441 def chdir(self, path: AnyStr) -> None:
473 def listdir(self, path: AnyStr) -> List[AnyStr]:
493 self, path: AnyStr, attribute: AnyString, *, follow_symlinks: bool = True
522 self, path: Optional[AnyStr] = None, *, follow_symlinks: bool = True
550 self, path: AnyStr, attribute: AnyString, *, follow_symlinks: bool = True
574 path: AnyStr,
628 top: AnyStr,
651 def readlink(self, path: AnyStr, dir_fd: Optional[int] = None) -> str:
672 path: AnyStr,
[all …]
Dfake_filesystem.py494 def get_path_separator(self, path: AnyStr) -> AnyStr:
498 def _alternative_path_separator(self, path: AnyStr) -> Optional[AnyStr]:
502 def starts_with_sep(self, path: AnyStr) -> bool:
510 path: AnyStr,
585 def _auto_mount_drive_if_needed(self, path: AnyStr) -> Optional[Dict]:
594 def _mount_point_for_path(self, path: AnyStr) -> Dict:
644 def get_disk_usage(self, path: Optional[AnyStr] = None) -> Tuple[int, int, int]:
669 def set_disk_usage(self, total_size: int, path: Optional[AnyStr] = None) -> None:
696 self, usage_change: int, file_path: AnyStr, st_dev: int
719 def stat(self, entry_path: AnyStr, follow_symlinks: bool = True):
[all …]
Dhelpers.py141 def make_string_path(dir_name: AnyStr) -> AnyStr: ...
152 def to_string(path: Union[AnyStr, Union[str, bytes]]) -> str:
160 def to_bytes(path: Union[AnyStr, Union[str, bytes]]) -> bytes:
168 def join_strings(s1: AnyStr, s2: AnyStr) -> AnyStr:
187 def matching_string(matched: bytes, string: AnyStr) -> bytes: ...
191 def matching_string(matched: str, string: AnyStr) -> str: ...
195 def matching_string(matched: AnyStr, string: None) -> None: ...
199 matched: AnyStr, string: Optional[AnyStr]
Dfake_open.py77 file: Union[AnyStr, int],
140 file_: Union[AnyStr, int],
317 file_path: AnyStr,
364 self, file_: Union[AnyStr, int]
Dfake_file.py136 name: AnyStr,
138 contents: Optional[AnyStr] = None,
281 def set_initial_contents(self, contents: AnyStr) -> bool:
308 def set_contents(self, contents: AnyStr, encoding: Optional[str] = None) -> bool:
428 def set_initial_contents(self, contents: AnyStr) -> bool:
501 def set_contents(self, contents: AnyStr, encoding: Optional[str] = None) -> bool:
753 file_path: AnyStr,
Dfake_io.py81 file: Union[AnyStr, int],
/external/grpc-grpc/src/python/grpcio/grpc/
D_simple_stubs.py234 options: Sequence[Tuple[AnyStr, AnyStr]] = (), argument
326 options: Sequence[Tuple[AnyStr, AnyStr]] = (), argument
417 options: Sequence[Tuple[AnyStr, AnyStr]] = (), argument
508 options: Sequence[Tuple[AnyStr, AnyStr]] = (), argument
D_common.py67 def encode(s: AnyStr) -> bytes:
74 def decode(b: AnyStr) -> str:
/external/pytorch/torch/_dynamo/polyfills/
Dos.py18 def fspath(path: AnyStr | os.PathLike[AnyStr]) -> AnyStr:
/external/pigweed/pw_tokenizer/py/pw_tokenizer/
Ddetokenize.py309 data: AnyStr,
326 data: AnyStr,
334 data: AnyStr,
344 data: AnyStr,
387 def detokenize(message: AnyStr) -> AnyStr:
/external/pytorch/torch/utils/
Dmobile_optimizer.py18 preserved_methods: Optional[List[AnyStr]] = None,
/external/python/cpython3/Lib/
Dtyping.py2802 AnyStr = TypeVar('AnyStr', bytes, str) variable
3539 def write(self, s: AnyStr) -> int:
3543 def writelines(self, lines: List[AnyStr]) -> None:
/external/scapy/scapy/
Dutils.py403 a: Union['Packet', AnyStr], argument
/external/python/typing_extensions/src/
Dtyping_extensions.py3607 AnyStr = typing.AnyStr variable