Skip to content

Commit 8b983c5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7f0cc19 commit 8b983c5

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

src/cloudevents/v1/pydantic/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818

1919
try:
2020
if TYPE_CHECKING:
21-
from cloudevents_v1.pydantic.v2 import CloudEvent, from_dict, from_http, from_json
21+
from cloudevents_v1.pydantic.v2 import (
22+
CloudEvent,
23+
from_dict,
24+
from_http,
25+
from_json,
26+
)
2227
else:
2328
from pydantic import VERSION as PYDANTIC_VERSION
2429

src/cloudevents/v1/pydantic/v1/event.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ def _ce_json_dumps( # type: ignore[no-untyped-def]
7171

7272

7373
def _ce_json_loads( # type: ignore[no-untyped-def]
74-
data: typing.AnyStr, *args, **kwargs # noqa
74+
data: typing.AnyStr,
75+
*args,
76+
**kwargs, # noqa
7577
) -> typing.Dict[typing.Any, typing.Any]:
7678
"""Performs Pydantic-specific deserialization of the event.
7779

src/cloudevents/v1/tests/test_backwards_compatability.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ def test_http_methods(dummy_event):
3737
from cloudevents_v1.http import from_http, to_binary, to_structured
3838
from cloudevents_v1.http.http_methods import from_http as deprecated_from_http
3939
from cloudevents_v1.http.http_methods import to_binary as deprecated_to_binary
40-
from cloudevents_v1.http.http_methods import to_structured as deprecated_to_structured
40+
from cloudevents_v1.http.http_methods import (
41+
to_structured as deprecated_to_structured,
42+
)
4143

4244
assert from_http(*to_binary(dummy_event)) == deprecated_from_http(
4345
*deprecated_to_binary(dummy_event)

0 commit comments

Comments
 (0)