style: remove from future import annotations

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
Henry Schreiner
2025-02-28 16:38:15 -05:00
committed by Henry Schreiner
parent 1b63074d76
commit 708cf1d32b
93 changed files with 63 additions and 239 deletions
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import json
import subprocess
from collections.abc import Generator
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import textwrap
import pytest
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import textwrap
from . import test_projects, utils
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import subprocess
import textwrap
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import subprocess
import textwrap
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from . import test_projects, utils
before_test_project = test_projects.new_c_project()
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import textwrap
from . import test_projects, utils
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import pytest
from . import test_projects, utils
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import platform
import textwrap
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import os
import jinja2
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import subprocess
from contextlib import nullcontext as does_not_raise
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import re
import textwrap
from pathlib import Path
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import shutil
import sys
import textwrap
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import itertools
import subprocess
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import os
import subprocess
import sys
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import os
import subprocess
import sys
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import platform
import subprocess
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import platform
import subprocess
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import platform
import textwrap
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import textwrap
import pytest
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import textwrap
from . import test_projects, utils
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from .base import TestProject
from .c import new_c_project
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import importlib
import subprocess
import sys
+3 -5
View File
@@ -1,7 +1,5 @@
from __future__ import annotations
from pathlib import Path
from typing import Any
from typing import Any, Self
import jinja2
@@ -37,8 +35,8 @@ class TestProject:
f.write(content)
def copy(self) -> TestProject:
other = TestProject()
def copy(self) -> Self:
other = self.__class__()
other.files = self.files.copy()
other.template_context = self.template_context.copy()
return other
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import jinja2
from .base import TestProject
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import subprocess
import pytest
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import textwrap
from . import test_projects, utils
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from pathlib import Path
import jinja2
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import inspect
import os
import subprocess
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import subprocess
import pytest
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import pytest
from . import test_projects, utils
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import os
import subprocess
import textwrap
-2
View File
@@ -4,8 +4,6 @@ Utility functions used by the cibuildwheel tests.
This file is added to the PYTHONPATH in the test runner at bin/run_test.py.
"""
from __future__ import annotations
import os
import platform as pm
import subprocess