summaryrefslogtreecommitdiff
path: root/mesonbuild/utils/universal.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2023-08-16 13:01:21 -0400
committerEli Schwartz <eschwartz@archlinux.org>2023-08-18 15:37:52 -0400
commit3ebd570bd538732437ee83c2fe9ac97aef6a03db (patch)
treead03fa008b2e0b2a36d1bf398a5027e1b8148205 /mesonbuild/utils/universal.py
parent184277bb4abbc0aa194ac02f592192d91fb109e1 (diff)
downloadmeson-3ebd570bd538732437ee83c2fe9ac97aef6a03db.tar.gz
consistently use Literal annotation from typing_extensions
This is our standard annotation policy, and makes mypy safe under python 3.7
Diffstat (limited to 'mesonbuild/utils/universal.py')
-rw-r--r--mesonbuild/utils/universal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/utils/universal.py b/mesonbuild/utils/universal.py
index 73d4523ae..c0fa15fa8 100644
--- a/mesonbuild/utils/universal.py
+++ b/mesonbuild/utils/universal.py
@@ -1361,7 +1361,7 @@ CONF_NASM_PRELUDE = '''; Autogenerated by the Meson build system.
'''
-def dump_conf_header(ofilename: str, cdata: 'ConfigurationData', output_format: T.Literal['c', 'nasm']) -> None:
+def dump_conf_header(ofilename: str, cdata: 'ConfigurationData', output_format: Literal['c', 'nasm']) -> None:
if output_format == 'c':
prelude = CONF_C_PRELUDE
prefix = '#'