381 raise_error_identifiers=raise_error_identifiers,
382 )
383 except APIException as e:
384 raise (e)385
386 @staticmethod
387 def parse_card(card_data: dict) -> Union[Card, None]:
327 raise_error_identifiers=raise_error_identifiers,
328 )
329 except APIException as e:
330 raise (e)331
332 def cardset_page_range(
333 self, id: int, per_page: int, page_range: range, raise_error_identifers=False
Extra parentheses in code can be removed for improved readability.
In the examples below, the first example is more readable than the second one.
Preferred:
if len(some_variable) + 1 < 1:
...
Not preferred:
if (len(some_variable) + 1) < 1:
...