Skip to content

Commit 495d903

Browse files
committed
chore: more mypy fixes
Signed-off-by: Tudor Plugaru <[email protected]>
1 parent 6f7ca7c commit 495d903

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/cloudevents/core/bindings/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from typing import Any, Callable, Dict, Optional, Union
1818
from urllib.parse import quote, unquote
1919

20-
from dateutil.parser import isoparse
20+
from dateutil.parser import isoparse # type: ignore[import-untyped]
2121

2222
from cloudevents.core.base import BaseCloudEvent
2323
from cloudevents.core.formats.base import Format

src/cloudevents/core/formats/json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from json import JSONEncoder, dumps, loads
2020
from typing import Any, Callable, Dict, Final, Optional, Pattern, Union
2121

22-
from dateutil.parser import isoparse
22+
from dateutil.parser import isoparse # type: ignore[import-untyped]
2323

2424
from cloudevents.core.base import BaseCloudEvent
2525
from cloudevents.core.formats.base import Format

tests/test_core/test_bindings/test_http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ def test_http_message_immutable() -> None:
6868
message = HTTPMessage(headers={"test": "value"}, body=b"data")
6969

7070
with pytest.raises(Exception): # FrozenInstanceError
71-
message.headers = {"new": "dict"} # type: ignore
71+
message.headers = {"new": "dict"} # type: ignore[misc]
7272

7373
with pytest.raises(Exception): # FrozenInstanceError
74-
message.body = b"new data" # type: ignore
74+
message.body = b"new data" # type: ignore[misc]
7575

7676

7777
def test_http_message_with_empty_headers() -> None:

0 commit comments

Comments
 (0)