obfuscatedgenerated / quizlet-api

Test for membership should be 'not in' FLK-E713
Anti-pattern
Major
a year agoa year old
test for membership should be 'not in'
400        # messy!
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