Home
last modified time | relevance | path

Searched refs:PathLike (Results 1 – 25 of 40) sorted by relevance

12

/third_party/python/Lib/
Dimghdr.py3 from os import PathLike
15 if isinstance(file, (str, PathLike)):
Dcompileall.py26 if quiet < 2 and isinstance(dir, os.PathLike):
157 if quiet < 2 and isinstance(fullname, os.PathLike):
Dzipapp.py39 if isinstance(archive, (str, os.PathLike)):
Dbz2.py80 if isinstance(filename, (str, bytes, os.PathLike)):
Dlzma.py117 if isinstance(filename, (str, bytes, os.PathLike)):
Dos.py1070 class PathLike(abc.ABC): class
1081 if cls is PathLike:
Dfileinput.py188 elif isinstance(files, os.PathLike):
Dconfigparser.py691 if isinstance(filenames, (str, bytes, os.PathLike)):
701 if isinstance(filename, os.PathLike):
Dgzip.py57 if isinstance(filename, (str, bytes, os.PathLike)):
Dtempfile.py92 if isinstance(arg, _os.PathLike):
Dsubprocess.py1369 elif isinstance(args, os.PathLike):
1695 elif isinstance(args, os.PathLike):
Dzipfile.py500 if isinstance(filename, os.PathLike):
1229 if isinstance(file, os.PathLike):
/third_party/googletest/googletest/test/
Dgoogletest-printers-test.cc207 class PathLike { class
210 typedef PathLike value_type;
213 PathLike& operator*();
219 PathLike() {} in PathLike() function in foo::PathLike
224 friend ::std::ostream& operator<<(::std::ostream& os, const PathLike&) { in operator <<() argument
1315 ::foo::PathLike x;
1317 const ::foo::PathLike cx;
/third_party/python/Misc/NEWS.d/
D3.6.0a2.rst47 Add support for os.PathLike objects to open() (part of :pep:`519`).
218 Add os.PathLike support to DirEntry (part of :pep:`519`). Initial patch by
238 Add os.PathLike support to pathlib, removing its provisional status (part of
248 Add support for os.PathLike objects to os.fsencode() and os.fsdecode() (part
258 Introduce os.PathLike and os.fspath() (part of :pep:`519`).
D3.8.0a2.rst28 in interfaces that allow passing :class:`~os.PathLike` objects has been
/third_party/python/Lib/importlib/
Dresources.py37 Resource = Union[str, os.PathLike]
/third_party/python/Lib/xml/sax/
Dsaxutils.py342 if isinstance(source, os.PathLike):
/third_party/python/Doc/library/
Dcompileall.rst201 They may be specified as ``str``, ``bytes`` or :py:class:`os.PathLike`.
271 They may be specified as ``str``, ``bytes`` or :py:class:`os.PathLike`.
Dpathlib.rst108 path segment, an object implementing the :class:`os.PathLike` interface
150 Pure path objects implement the :class:`os.PathLike` interface, allowing them
154 Added support for the :class:`os.PathLike` interface.
220 A path object can be used anywhere an object implementing :class:`os.PathLike`
Dos.rst246 Support added to accept objects implementing the :class:`os.PathLike`
261 Support added to accept objects implementing the :class:`os.PathLike`
270 Otherwise :meth:`~os.PathLike.__fspath__` is called and its value is
277 .. class:: PathLike
1977 (directly or indirectly through the :class:`PathLike` interface),
2217 :class:`PathLike` interface), the result will also be a string object,
2396 (directly or indirectly through the :class:`PathLike` interface),
2476 implements the :class:`PathLike` interface.
2595 Added support for the :class:`~os.PathLike` interface. Added support
2603 either a string or bytes -- directly or indirectly through the :class:`PathLike`
[all …]
/third_party/python/Doc/c-api/
Dsys.rst12 incremented. If the object implements the :class:`os.PathLike` interface,
13 then :meth:`~os.PathLike.__fspath__` is returned as long as it is a
/third_party/typescript/tests/baselines/reference/user/
Dacorn.log482 …Overload 1 of 3, '(path: number | PathLike, options?: { encoding?: null | undefined; flag?: string…
483 … Argument of type 'string | undefined' is not assignable to parameter of type 'number | PathLike'.
484 Type 'undefined' is not assignable to type 'number | PathLike'.
485 …Overload 2 of 3, '(path: number | PathLike, options: { encoding: BufferEncoding; flag?: string | u…
486 … Argument of type 'string | undefined' is not assignable to parameter of type 'number | PathLike'.
487 …Overload 3 of 3, '(path: number | PathLike, options?: BufferEncoding | (BaseEncodingOptions & { fl…
488 … Argument of type 'string | undefined' is not assignable to parameter of type 'number | PathLike'.
496 …Overload 1 of 3, '(path: number | PathLike, options?: { encoding?: null | undefined; flag?: string…
497 … Argument of type 'string | undefined' is not assignable to parameter of type 'number | PathLike'.
498 …Overload 2 of 3, '(path: number | PathLike, options: { encoding: BufferEncoding; flag?: string | u…
[all …]
/third_party/python/Lib/test/
Dtest_ntpath.py46 if isinstance(path, (bytes, str, os.PathLike)):
Dtest_os.py4454 self.assertTrue(issubclass(FakePath, os.PathLike))
4455 self.assertTrue(isinstance(FakePath('x'), os.PathLike))
4479 class A(os.PathLike):
4482 self.assertTrue(issubclass(FakePath, os.PathLike))
4485 self.assertIsInstance(os.PathLike[bytes], types.GenericAlias)
/third_party/python/Doc/whatsnew/
D3.6.rst414 :class:`os.PathLike` has been defined. By implementing the
415 :meth:`~os.PathLike.__fspath__` method, an object signals that it
420 :class:`os.PathLike` or is a :class:`str` or :class:`bytes` object
427 :class:`os.PathLike` objects, as have all relevant functions in the
431 implement :class:`os.PathLike`.

12