Skip to content

Commit

Permalink
fix typing.assert_type
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcoding committed Oct 11, 2024
1 parent bd9a31c commit 7cff945
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/exthttp/test_abstract.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
from typing import Any, assert_type
from typing import Any

import pytest
from multidict import CIMultiDict

from extapi._meta import PY311
from extapi.http.abc import AbstractExecutor, Addon
from extapi.http.types import RequestData, Response

if PY311:
from typing import assert_type # type: ignore[attr-defined]
else:
from typing_extensions import assert_type


class TestAbstractExecutor:
@pytest.mark.parametrize("method", ["get", "post", "put", "patch", "delete"])
Expand Down

0 comments on commit 7cff945

Please sign in to comment.