Skip to content

Commit d3a060d

Browse files
authored
chore: add types-requests (#145)
1 parent 997dcae commit d3a060d

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

poetry.lock

Lines changed: 17 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ poethepoet = ">=0.30"
2222
codespell = "^2.3.0"
2323
yamllint = "^1.35.1"
2424
anys = "^0.3.1"
25+
types-requests = "^2.32.4.20250611"
2526

2627
[build-system]
2728
requires = ["poetry-core", "poetry-dynamic-versioning"]

pytest_mergify/tracer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import random
44
import typing
55

6-
import requests # type: ignore[import-untyped]
6+
import requests
77
import opentelemetry.sdk.resources
88
from opentelemetry.sdk.trace import export
99
from opentelemetry.sdk.trace import TracerProvider, SpanProcessor, ReadableSpan
@@ -37,7 +37,7 @@ def on_end(self, span: ReadableSpan) -> None:
3737
self.queue.append(span)
3838

3939

40-
class SessionHardRaiser(requests.Session): # type: ignore[misc]
40+
class SessionHardRaiser(requests.Session):
4141
"""Custom requests.Session that raises an exception on HTTP error."""
4242

4343
def request(self, *args: typing.Any, **kwargs: typing.Any) -> requests.Response:

0 commit comments

Comments
 (0)