diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2023-08-16 12:59:58 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-08-18 11:16:15 -0400 |
| commit | 184277bb4abbc0aa194ac02f592192d91fb109e1 (patch) | |
| tree | ed2e59e74030bd8d59445c29e620ecae1b0b921b /docs/refman/generatorjson.py | |
| parent | 2edcbb452ee30bb173518e51f28f7c192dc070e3 (diff) | |
| download | meson-184277bb4abbc0aa194ac02f592192d91fb109e1.tar.gz | |
docs: use future annotations for genrefman types in typing_extensions
And in fact *use* typing_extensions, which is sometimes the only way to
get access to TypedDict.
Mostly, reindent almost but not quite an entire file to only define
annotation classes under TYPE_CHECKING.
Diffstat (limited to 'docs/refman/generatorjson.py')
| -rw-r--r-- | docs/refman/generatorjson.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/refman/generatorjson.py b/docs/refman/generatorjson.py index d41cb7162..a2edc184a 100644 --- a/docs/refman/generatorjson.py +++ b/docs/refman/generatorjson.py @@ -1,5 +1,6 @@ # SPDX-License-Identifer: Apache-2.0 # Copyright 2021 The Meson development team +from __future__ import annotations from pathlib import Path import json |
