Skip to content

Commit 9cb0b22

Browse files
committed
See what happens if we use a non-types dependency in a test case
1 parent c60c379 commit 9cb0b22

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stubs/requests/@tests/test_cases/check_post.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
from collections.abc import Iterable
66

7+
# For the purposes of testing this PR, we're pretending packaging is a non-types dependency of types-urllib3
8+
# Since types-urllib3 is a dependency of requests, packaging should be available in the test cases for requests
9+
import packaging.version
710
import requests
811

912
# =================================================================================================
@@ -56,3 +59,5 @@ def gen() -> Iterable[bytes]:
5659
requests.post("http://httpbin.org/anything", data=[("foo", "bar")]).json()["form"]
5760
requests.post("http://httpbin.org/anything", data=((b"foo", b"bar"),)).json()["form"]
5861
requests.post("http://httpbin.org/anything", data=(("foo", "bar"),)).json()["form"]
62+
63+
foo: packaging.version.Version

0 commit comments

Comments
 (0)