================
@@ -103,9 +103,14 @@
 
 if TYPE_CHECKING:
     from ctypes import _Pointer
+    from io import TextIOWrapper
     from typing_extensions import Protocol, TypeAlias
 
     StrPath: TypeAlias = TUnion[str, os.PathLike[str]]
+    # The type that is compatible with os.fspath:
+    # str, bytes, or os.PathLikes that return either of these two
+    StrBytesPath: TypeAlias = TUnion[str, bytes, os.PathLike[str], 
os.PathLike[bytes]]
----------------
Endilll wrote:

Does `os.PathLike` have `__class_getitem__`? I don't see it [in the 
docs](https://docs.python.org/3/library/os.html#os.PathLike).

https://github.com/llvm/llvm-project/pull/180876
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to