File tree Expand file tree Collapse file tree 3 files changed +61
-114
lines changed
Expand file tree Collapse file tree 3 files changed +61
-114
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ classifiers = [
2121 " Programming Language :: Python :: Implementation :: CPython" ,
2222]
2323dependencies = [
24- " requests " ,
24+ " httpx " ,
2525]
2626
2727[dependency-groups ]
@@ -34,7 +34,6 @@ lint = [
3434 " flake8-builtins" ,
3535 " flake8-pep585" ,
3636 " mypy" ,
37- " types-requests" ,
3837]
3938tool = [
4039 " pre-commit" ,
Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5- import requests
5+ import httpx
66
77
88def main () -> bool :
@@ -18,4 +18,4 @@ def squared(value: int) -> int:
1818
1919def health_check () -> bool :
2020 """Returns true when github.com is accessible."""
21- return requests .get ("https://github.com" ).ok
21+ return httpx .get ("https://github.com" ).is_success
You can’t perform that action at this time.
0 commit comments