From 1e596bef255290e055add83325271b6f4df67325 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Sat, 12 Sep 2026 15:34:51 +0100 Subject: [PATCH] Move annotation-only conftest imports --- conftest.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/conftest.py b/conftest.py index 1fb508556..7869bab15 100644 --- a/conftest.py +++ b/conftest.py @@ -1,10 +1,11 @@ """Setup for Sybil.""" -import io # noqa: TC003 +from __future__ import annotations + import uuid -from collections.abc import Generator # noqa: TC003 from doctest import ELLIPSIS from pathlib import Path +from typing import TYPE_CHECKING import pytest from mock_vws import MockVWS @@ -16,6 +17,10 @@ PythonCodeBlockParser, ) +if TYPE_CHECKING: + import io + from collections.abc import Generator + @pytest.fixture(name="make_image_file") def fixture_make_image_file(