Browse Source

Update tests to import Annotated from typing_extensions for Python < 3.9 (#9795)

pull/9796/head
Sebastián Ramírez 2 years ago
committed by GitHub
parent
commit
b4c1d5ab70
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      tests/test_regex_deprecated_body.py
  2. 3
      tests/test_regex_deprecated_params.py

3
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

3
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

Loading…
Cancel
Save