Skip to content

Commit 2fe868b

Browse files
authored
Fix exporting the type CloudEvent for Mypy (#16)
1 parent 8ce49b8 commit 2fe868b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cloudevents_pydantic/events/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@
2323

2424

2525
from ._event import CloudEvent
26+
27+
__all__ = ["CloudEvent"]

cloudevents_pydantic/events/_event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
_binary_field_metadata = FieldInfo.from_annotation(Binary).metadata
6363

6464

65-
class CloudEvent(BaseModel): # type: ignore
65+
class CloudEvent(BaseModel):
6666
"""
6767
A Python-friendly CloudEvent representation backed by Pydantic-modeled fields.
6868
"""

0 commit comments

Comments
 (0)