Skip to content

Commit 443aee9

Browse files
committed
chore: Skip type checing for getters of required attributes
We can't use TypedDict here becuase it does not allow for arbitrary keys which we need in order to support custom extension attributes. Signed-off-by: Tudor Plugaru <[email protected]>
1 parent e78a70b commit 443aee9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cloudevents/core/v1/event.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,31 +223,31 @@ def get_id(self) -> str:
223223
224224
:return: The ID of the event.
225225
"""
226-
return self._attributes["id"]
226+
return self._attributes["id"] # type: ignore
227227

228228
def get_source(self) -> str:
229229
"""
230230
Retrieve the source of the event.
231231
232232
:return: The source of the event.
233233
"""
234-
return self._attributes["source"]
234+
return self._attributes["source"] # type: ignore
235235

236236
def get_type(self) -> str:
237237
"""
238238
Retrieve the type of the event.
239239
240240
:return: The type of the event.
241241
"""
242-
return self._attributes["type"]
242+
return self._attributes["type"] # type: ignore
243243

244244
def get_specversion(self) -> str:
245245
"""
246246
Retrieve the specversion of the event.
247247
248248
:return: The specversion of the event.
249249
"""
250-
return self._attributes["specversion"]
250+
return self._attributes["specversion"] # type: ignore
251251

252252
def get_datacontenttype(self) -> Optional[str]:
253253
"""

0 commit comments

Comments
 (0)