Skip to content

Commit 8f0145f

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

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

cloudevents/pydantic/__init__.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,19 @@
2424

2525
pydantic_major_version = PYDANTIC_VERSION.split(".")[0]
2626
if pydantic_major_version == "1":
27-
from cloudevents.pydantic.v1 import CloudEvent, from_dict, from_http, from_json
27+
from cloudevents.pydantic.v1 import (
28+
CloudEvent,
29+
from_dict,
30+
from_http,
31+
from_json,
32+
)
2833
else:
29-
from cloudevents.pydantic.v2 import CloudEvent, from_dict, from_http, from_json
34+
from cloudevents.pydantic.v2 import (
35+
CloudEvent,
36+
from_dict,
37+
from_http,
38+
from_json,
39+
)
3040

3141
except ImportError: # pragma: no cover # hard to test
3242
raise PydanticFeatureNotInstalled(

0 commit comments

Comments
 (0)