diff --git a/noxfile.py b/noxfile.py index 1dc37b29d..e5c956a0a 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import nox from nox.sessions import Session diff --git a/tpch/execute/__init__.py b/tpch/execute/__init__.py index e0c448649..ecbf1db53 100644 --- a/tpch/execute/__init__.py +++ b/tpch/execute/__init__.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from pathlib import Path import dask.dataframe as dd diff --git a/tpch/execute/q1.py b/tpch/execute/q1.py index 9889c3af0..d0ebce584 100644 --- a/tpch/execute/q1.py +++ b/tpch/execute/q1.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q1 from . import IO_FUNCS diff --git a/tpch/execute/q10.py b/tpch/execute/q10.py index 124bf0f7d..1f610932c 100644 --- a/tpch/execute/q10.py +++ b/tpch/execute/q10.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q10 from . import IO_FUNCS diff --git a/tpch/execute/q11.py b/tpch/execute/q11.py index 8c0a2e649..0dd8a243c 100644 --- a/tpch/execute/q11.py +++ b/tpch/execute/q11.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q11 from . import IO_FUNCS diff --git a/tpch/execute/q12.py b/tpch/execute/q12.py index 3c3a70c62..f684e22ad 100644 --- a/tpch/execute/q12.py +++ b/tpch/execute/q12.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q12 from . import IO_FUNCS diff --git a/tpch/execute/q13.py b/tpch/execute/q13.py index 2fdda5bd3..7b03a2f2f 100644 --- a/tpch/execute/q13.py +++ b/tpch/execute/q13.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q13 from . import IO_FUNCS diff --git a/tpch/execute/q14.py b/tpch/execute/q14.py index dfd54056e..a82330136 100644 --- a/tpch/execute/q14.py +++ b/tpch/execute/q14.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q14 from . import IO_FUNCS diff --git a/tpch/execute/q15.py b/tpch/execute/q15.py index 86a03b0a0..40b4432b1 100644 --- a/tpch/execute/q15.py +++ b/tpch/execute/q15.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q15 from . import IO_FUNCS diff --git a/tpch/execute/q16.py b/tpch/execute/q16.py index 6a70279d0..ef30f935c 100644 --- a/tpch/execute/q16.py +++ b/tpch/execute/q16.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q16 from . import IO_FUNCS diff --git a/tpch/execute/q17.py b/tpch/execute/q17.py index 43ef4f8b1..0b7ca4a66 100644 --- a/tpch/execute/q17.py +++ b/tpch/execute/q17.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q17 from . import IO_FUNCS diff --git a/tpch/execute/q18.py b/tpch/execute/q18.py index c7e5b7954..a096deb2f 100644 --- a/tpch/execute/q18.py +++ b/tpch/execute/q18.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q18 from . import IO_FUNCS diff --git a/tpch/execute/q19.py b/tpch/execute/q19.py index 60f91b052..23095a890 100644 --- a/tpch/execute/q19.py +++ b/tpch/execute/q19.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q19 from . import IO_FUNCS diff --git a/tpch/execute/q2.py b/tpch/execute/q2.py index cd82a9047..0e2d07019 100644 --- a/tpch/execute/q2.py +++ b/tpch/execute/q2.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q2 from . import IO_FUNCS diff --git a/tpch/execute/q20.py b/tpch/execute/q20.py index 3984b7580..c4ffa43b4 100644 --- a/tpch/execute/q20.py +++ b/tpch/execute/q20.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q20 from . import IO_FUNCS diff --git a/tpch/execute/q21.py b/tpch/execute/q21.py index 7cf772d8e..d6fb272ad 100644 --- a/tpch/execute/q21.py +++ b/tpch/execute/q21.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q21 from . import IO_FUNCS diff --git a/tpch/execute/q22.py b/tpch/execute/q22.py index a2bb1e76d..f71fc4220 100644 --- a/tpch/execute/q22.py +++ b/tpch/execute/q22.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q22 from . import IO_FUNCS diff --git a/tpch/execute/q3.py b/tpch/execute/q3.py index d6b9302cc..bbcc51d5c 100644 --- a/tpch/execute/q3.py +++ b/tpch/execute/q3.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q3 from . import IO_FUNCS diff --git a/tpch/execute/q4.py b/tpch/execute/q4.py index 5645574f8..bcfd3a158 100644 --- a/tpch/execute/q4.py +++ b/tpch/execute/q4.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q4 from . import IO_FUNCS diff --git a/tpch/execute/q5.py b/tpch/execute/q5.py index dcc61027b..66524c5a8 100644 --- a/tpch/execute/q5.py +++ b/tpch/execute/q5.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q5 from . import IO_FUNCS diff --git a/tpch/execute/q6.py b/tpch/execute/q6.py index 154964ff4..1d650b794 100644 --- a/tpch/execute/q6.py +++ b/tpch/execute/q6.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q6 from . import IO_FUNCS diff --git a/tpch/execute/q7.py b/tpch/execute/q7.py index a08d5641c..069fb258b 100644 --- a/tpch/execute/q7.py +++ b/tpch/execute/q7.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q7 from . import IO_FUNCS diff --git a/tpch/execute/q8.py b/tpch/execute/q8.py index a76a8051f..8c3aa5de9 100644 --- a/tpch/execute/q8.py +++ b/tpch/execute/q8.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q8 from . import IO_FUNCS diff --git a/tpch/execute/q9.py b/tpch/execute/q9.py index 14230af64..4c8e6874c 100644 --- a/tpch/execute/q9.py +++ b/tpch/execute/q9.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from queries import q9 from . import IO_FUNCS diff --git a/tpch/generate_data.py b/tpch/generate_data.py index 5fd73b1f7..d0a370a2a 100644 --- a/tpch/generate_data.py +++ b/tpch/generate_data.py @@ -1,4 +1,6 @@ -from pathlib import Path # noqa: INP001 +from __future__ import annotations + +from pathlib import Path import duckdb import pyarrow as pa diff --git a/tpch/queries/q1.py b/tpch/queries/q1.py index de6157702..dda55398f 100644 --- a/tpch/queries/q1.py +++ b/tpch/queries/q1.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from datetime import datetime import narwhals as nw diff --git a/tpch/queries/q10.py b/tpch/queries/q10.py index 486e4ba82..a2eda710a 100644 --- a/tpch/queries/q10.py +++ b/tpch/queries/q10.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from datetime import datetime import narwhals as nw diff --git a/tpch/queries/q11.py b/tpch/queries/q11.py index d5b48b359..f40a646b0 100644 --- a/tpch/queries/q11.py +++ b/tpch/queries/q11.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import narwhals as nw from narwhals.typing import FrameT diff --git a/tpch/queries/q12.py b/tpch/queries/q12.py index ced775830..e7a9520ba 100644 --- a/tpch/queries/q12.py +++ b/tpch/queries/q12.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from datetime import datetime import narwhals as nw diff --git a/tpch/queries/q13.py b/tpch/queries/q13.py index adf57e5a2..3ed3ddf63 100644 --- a/tpch/queries/q13.py +++ b/tpch/queries/q13.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import narwhals as nw from narwhals.typing import FrameT diff --git a/tpch/queries/q14.py b/tpch/queries/q14.py index f1ec6cbe3..eb70f92f7 100644 --- a/tpch/queries/q14.py +++ b/tpch/queries/q14.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from datetime import datetime import narwhals as nw diff --git a/tpch/queries/q15.py b/tpch/queries/q15.py index 1ebae57d6..288059da6 100644 --- a/tpch/queries/q15.py +++ b/tpch/queries/q15.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from datetime import datetime import narwhals as nw diff --git a/tpch/queries/q16.py b/tpch/queries/q16.py index d84b9aab5..52a3640f6 100644 --- a/tpch/queries/q16.py +++ b/tpch/queries/q16.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import narwhals as nw from narwhals.typing import FrameT diff --git a/tpch/queries/q17.py b/tpch/queries/q17.py index 976f476f0..fb80eea71 100644 --- a/tpch/queries/q17.py +++ b/tpch/queries/q17.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import narwhals as nw from narwhals.typing import FrameT diff --git a/tpch/queries/q18.py b/tpch/queries/q18.py index d3d183176..9adbb1d2b 100644 --- a/tpch/queries/q18.py +++ b/tpch/queries/q18.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import narwhals as nw from narwhals.typing import FrameT diff --git a/tpch/queries/q19.py b/tpch/queries/q19.py index bcab36e9a..3ec8e2021 100644 --- a/tpch/queries/q19.py +++ b/tpch/queries/q19.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import narwhals as nw from narwhals.typing import FrameT diff --git a/tpch/queries/q2.py b/tpch/queries/q2.py index 0e9e90d09..996a1f0ea 100644 --- a/tpch/queries/q2.py +++ b/tpch/queries/q2.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import narwhals as nw from narwhals.typing import FrameT diff --git a/tpch/queries/q20.py b/tpch/queries/q20.py index b0dabb29e..2144cb9cb 100644 --- a/tpch/queries/q20.py +++ b/tpch/queries/q20.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from datetime import datetime import narwhals as nw diff --git a/tpch/queries/q21.py b/tpch/queries/q21.py index d10ff394f..688e3b8d7 100644 --- a/tpch/queries/q21.py +++ b/tpch/queries/q21.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import narwhals as nw from narwhals.typing import FrameT diff --git a/tpch/queries/q22.py b/tpch/queries/q22.py index 2e0973227..6ce676a71 100644 --- a/tpch/queries/q22.py +++ b/tpch/queries/q22.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import narwhals as nw from narwhals.typing import FrameT diff --git a/tpch/queries/q3.py b/tpch/queries/q3.py index 04679bccb..2dc67162f 100644 --- a/tpch/queries/q3.py +++ b/tpch/queries/q3.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from datetime import datetime import narwhals as nw diff --git a/tpch/queries/q4.py b/tpch/queries/q4.py index a1b96be15..dc9921ac3 100644 --- a/tpch/queries/q4.py +++ b/tpch/queries/q4.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from datetime import datetime import narwhals as nw diff --git a/tpch/queries/q5.py b/tpch/queries/q5.py index 2965868c9..c889ce63c 100644 --- a/tpch/queries/q5.py +++ b/tpch/queries/q5.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from datetime import datetime import narwhals as nw diff --git a/tpch/queries/q6.py b/tpch/queries/q6.py index 67f0ac785..e13c67f73 100644 --- a/tpch/queries/q6.py +++ b/tpch/queries/q6.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from datetime import datetime import narwhals as nw diff --git a/tpch/queries/q7.py b/tpch/queries/q7.py index ec0946ac3..0d4b92ef6 100644 --- a/tpch/queries/q7.py +++ b/tpch/queries/q7.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from datetime import datetime import narwhals as nw diff --git a/tpch/queries/q8.py b/tpch/queries/q8.py index ac3fa4baf..70cbd1030 100644 --- a/tpch/queries/q8.py +++ b/tpch/queries/q8.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from datetime import date import narwhals as nw diff --git a/tpch/queries/q9.py b/tpch/queries/q9.py index 09dff4787..247eb205c 100644 --- a/tpch/queries/q9.py +++ b/tpch/queries/q9.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import narwhals as nw from narwhals.typing import FrameT diff --git a/tpch/tests/queries_test.py b/tpch/tests/queries_test.py index 35909b683..c228fd52b 100644 --- a/tpch/tests/queries_test.py +++ b/tpch/tests/queries_test.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import subprocess import sys from pathlib import Path diff --git a/utils/check_api_reference.py b/utils/check_api_reference.py index 75acfe5cd..b7d8595aa 100644 --- a/utils/check_api_reference.py +++ b/utils/check_api_reference.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import os import sys diff --git a/utils/check_for_no_build_errors.py b/utils/check_for_no_build_errors.py index 995411e9d..0d6d9f7fd 100644 --- a/utils/check_for_no_build_errors.py +++ b/utils/check_for_no_build_errors.py @@ -4,6 +4,7 @@ This is just used in CI. """ +from __future__ import annotations import sys diff --git a/utils/generate_random_versions.py b/utils/generate_random_versions.py index ecb709c1a..7ad8e044d 100644 --- a/utils/generate_random_versions.py +++ b/utils/generate_random_versions.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import random PANDAS_AND_NUMPY_VERSION = [