We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
StrPath
1 parent c6445ea commit 2f11a06Copy full SHA for 2f11a06
src/libtmux/_internal/types.py
@@ -0,0 +1,19 @@
1
+"""Internal type annotations.
2
+
3
+Notes
4
+-----
5
+:class:`StrPath` and :class:`StrOrBytesPath` is based on `typeshed's`_.
6
7
+.. _typeshed's: https://github.com/python/typeshed/blob/5ff32f3/stdlib/_typeshed/__init__.pyi#L176-L179
8
+""" # E501
9
10
+from __future__ import annotations
11
12
+import typing as t
13
14
+if t.TYPE_CHECKING:
15
+ from os import PathLike
16
17
+ from typing_extensions import TypeAlias
18
19
+StrPath: TypeAlias = "str | PathLike[str]"
0 commit comments