32 raise TypeError("paging_token must be a string if provided")
33
34 if page > 1 and paging_token is None:
35 warn(36 "Page number is greater than 1 yet no paging token is provided. This may cause a 400 error."
37 )
38
401 if not ("id" in card_data and isinstance(card_data["id"], int)):
402 raise TypeError("card_data must contain an id and it must be an integer")
403 if not "studiableContainerType" in card_data:
404 warn("card_data does not contain a studiableContainerType")405 if not (
406 "studiableContainerId" in card_data
407 and isinstance(card_data["studiableContainerId"], int)
394 )
395
396 if card_data["isDeleted"]:
397 warn("Card is deleted, skipping (could be a private set)")398 return None
399
400 # messy!
The method is marked as deprecated and will be removed in a future version of Python. Consider looking for an alternative in the documentation.