diff --git a/babelizer/_datadir.py b/babelizer/_datadir.py index 02ceff7..afb08e3 100644 --- a/babelizer/_datadir.py +++ b/babelizer/_datadir.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import sys if sys.version_info >= (3, 12): # pragma: no cover (PY12+) diff --git a/babelizer/_files/bmi_py.py b/babelizer/_files/bmi_py.py index aeccdcc..1d00e5b 100644 --- a/babelizer/_files/bmi_py.py +++ b/babelizer/_files/bmi_py.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import os from collections.abc import Mapping from typing import Any diff --git a/babelizer/_files/gitignore.py b/babelizer/_files/gitignore.py index 21c3893..1296106 100644 --- a/babelizer/_files/gitignore.py +++ b/babelizer/_files/gitignore.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import os from collections.abc import Mapping from typing import Any diff --git a/babelizer/_files/init_py.py b/babelizer/_files/init_py.py index 0f9c1c4..5999df8 100644 --- a/babelizer/_files/init_py.py +++ b/babelizer/_files/init_py.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import os from collections.abc import Mapping from typing import Any diff --git a/babelizer/_files/lib_init_py.py b/babelizer/_files/lib_init_py.py index 3715269..269b655 100644 --- a/babelizer/_files/lib_init_py.py +++ b/babelizer/_files/lib_init_py.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import os from collections.abc import Mapping from typing import Any diff --git a/babelizer/_files/license_rst.py b/babelizer/_files/license_rst.py index 0046196..1d5bc49 100644 --- a/babelizer/_files/license_rst.py +++ b/babelizer/_files/license_rst.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from collections.abc import Mapping from datetime import datetime from typing import Any diff --git a/babelizer/_files/meson_build.py b/babelizer/_files/meson_build.py index 0b8d5d8..4996e3d 100644 --- a/babelizer/_files/meson_build.py +++ b/babelizer/_files/meson_build.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import os from collections import defaultdict from collections.abc import Iterable diff --git a/babelizer/_files/readme.py b/babelizer/_files/readme.py index 8141ee3..f9cdbf9 100644 --- a/babelizer/_files/readme.py +++ b/babelizer/_files/readme.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from typing import Any from jinja2 import Environment diff --git a/babelizer/render.py b/babelizer/render.py index da02372..fdc045c 100644 --- a/babelizer/render.py +++ b/babelizer/render.py @@ -1,4 +1,5 @@ """Render a new babelized project.""" +from __future__ import annotations import contextlib import os