From b4c1d5ab70586672e79ecb512cc7e3a29d45ee3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Tue, 4 Jul 2023 13:14:58 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Update=20tests=20to=20import=20Anno?= =?UTF-8?q?tated=20from=20typing=5Fextensions=20for=20Python=20<=203.9=20(?= =?UTF-8?q?#9795)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_regex_deprecated_body.py | 3 +-- tests/test_regex_deprecated_params.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_regex_deprecated_body.py b/tests/test_regex_deprecated_body.py index 6384cdd43..ca1ab514c 100644 --- a/tests/test_regex_deprecated_body.py +++ b/tests/test_regex_deprecated_body.py @@ -1,10 +1,9 @@ -from typing import Annotated - import pytest from dirty_equals import IsDict from fastapi import FastAPI, Form from fastapi.testclient import TestClient from fastapi.utils import match_pydantic_error_url +from typing_extensions import Annotated from .utils import needs_py310 diff --git a/tests/test_regex_deprecated_params.py b/tests/test_regex_deprecated_params.py index 5ea4f2ada..79a653353 100644 --- a/tests/test_regex_deprecated_params.py +++ b/tests/test_regex_deprecated_params.py @@ -1,10 +1,9 @@ -from typing import Annotated - import pytest from dirty_equals import IsDict from fastapi import FastAPI, Query from fastapi.testclient import TestClient from fastapi.utils import match_pydantic_error_url +from typing_extensions import Annotated from .utils import needs_py310