Skip to content

Commit

Permalink
Use an annotation for the typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpieters committed Apr 19, 2023
1 parent 632a6de commit ab8a1d8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_url_query.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
from typing import List, Tuple # noqa: F401
from typing import List, Tuple
from urllib.parse import urlencode

import pytest
from multidict import MultiDict, MultiDictProxy

from yarl import URL


# ========================================
# Basic chars in query values
# ========================================

URLS_WITH_BASIC_QUERY_VALUES = [
URLS_WITH_BASIC_QUERY_VALUES: List[Tuple[URL, MultiDict]] = [
# Empty strings, keys and values
(
URL("http://example.com"),
Expand Down Expand Up @@ -52,7 +51,7 @@
URL("http://example.com?bar=π•¦π•Ÿπ•šπ•”π• π••π•–"),
MultiDict({"bar": "π•¦π•Ÿπ•šπ•”π• π••π•–"}),
),
] # type: List[Tuple[URL, MultiDict]]
]


@pytest.mark.parametrize(
Expand Down

0 comments on commit ab8a1d8

Please sign in to comment.