@@ -273,7 +273,7 @@ def to_dict(self) -> Dict[str, Any]:
273
273
def start (self ) -> Optional [datetime .datetime ]:
274
274
"""Optional[:class:`datetime.datetime`]: When the user started doing this activity in UTC, if applicable."""
275
275
try :
276
- timestamp = self .timestamps ['start' ] / 1000
276
+ timestamp = self .timestamps ['start' ] / 1000 # pyright: ignore[reportTypedDictNotRequiredAccess]
277
277
except KeyError :
278
278
return None
279
279
else :
@@ -283,7 +283,7 @@ def start(self) -> Optional[datetime.datetime]:
283
283
def end (self ) -> Optional [datetime .datetime ]:
284
284
"""Optional[:class:`datetime.datetime`]: When the user will stop doing this activity in UTC, if applicable."""
285
285
try :
286
- timestamp = self .timestamps ['end' ] / 1000
286
+ timestamp = self .timestamps ['end' ] / 1000 # pyright: ignore[reportTypedDictNotRequiredAccess]
287
287
except KeyError :
288
288
return None
289
289
else :
@@ -293,7 +293,7 @@ def end(self) -> Optional[datetime.datetime]:
293
293
def large_image_url (self ) -> Optional [str ]:
294
294
"""Optional[:class:`str`]: Returns a URL pointing to the large image asset of this activity, if applicable."""
295
295
try :
296
- large_image = self .assets ['large_image' ]
296
+ large_image = self .assets ['large_image' ] # pyright: ignore[reportTypedDictNotRequiredAccess]
297
297
except KeyError :
298
298
return None
299
299
else :
@@ -303,7 +303,7 @@ def large_image_url(self) -> Optional[str]:
303
303
def small_image_url (self ) -> Optional [str ]:
304
304
"""Optional[:class:`str`]: Returns a URL pointing to the small image asset of this activity, if applicable."""
305
305
try :
306
- small_image = self .assets ['small_image' ]
306
+ small_image = self .assets ['small_image' ] # pyright: ignore[reportTypedDictNotRequiredAccess]
307
307
except KeyError :
308
308
return None
309
309
else :
@@ -525,7 +525,7 @@ def twitch_name(self) -> Optional[str]:
525
525
"""
526
526
527
527
try :
528
- name = self .assets ['large_image' ]
528
+ name = self .assets ['large_image' ] # pyright: ignore[reportTypedDictNotRequiredAccess]
529
529
except KeyError :
530
530
return None
531
531
else :
0 commit comments