diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-06-05 09:44:35 +0200 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-06-05 12:35:48 +0200 |
commit | 27bb5f536a0f6d2b97a3e46348dc9f515a46a651 (patch) | |
tree | d23f3d9e74c2876003ba6cbc0c651de6449df55c /mesonbuild/_typing.py | |
parent | 969ee9d85bb85b7aab2d21ebd1368c4ab2e90771 (diff) | |
download | meson-27bb5f536a0f6d2b97a3e46348dc9f515a46a651.zip meson-27bb5f536a0f6d2b97a3e46348dc9f515a46a651.tar.gz meson-27bb5f536a0f6d2b97a3e46348dc9f515a46a651.tar.bz2 |
typing: mlog use StringProtocol
Diffstat (limited to 'mesonbuild/_typing.py')
-rw-r--r-- | mesonbuild/_typing.py | 3 |
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 |