aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/_typing.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/_typing.py')
-rw-r--r--mesonbuild/_typing.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/_typing.py b/mesonbuild/_typing.py
index a8faa43..a01be33 100644
--- a/mesonbuild/_typing.py
+++ b/mesonbuild/_typing.py
@@ -33,6 +33,9 @@ from typing_extensions import Protocol
T = typing.TypeVar('T')
+class StringProtocol(Protocol):
+ def __str__(self) -> str: ...
+
class ImmutableListProtocol(Protocol[T]):
"""A protocol used in cases where a list is returned, but should not be