uselotus / lotus

File .deepsource.toml not found in the default branch of the repository root. Please refer to the docs.

Consider using a set comprehension PYL-R1718
Performance
Major
a year agoa year old
Consider using a set comprehension
457            except Customer.DoesNotExist:
458                continue
459            sub_items = subscription["items"]
460            item_ids = set([x["price"]["id"] for x in sub_items["data"]]) | set(461                [x["price"]["product"] for x in sub_items["data"]]
462            )
463            matching_plans = list(filter(lambda x: x[1] & item_ids, lotus_plans))
Consider using a set comprehension
457            except Customer.DoesNotExist:
458                continue
459            sub_items = subscription["items"]
460            item_ids = set([x["price"]["id"] for x in sub_items["data"]]) | set(461                [x["price"]["product"] for x in sub_items["data"]]
462            )
463            matching_plans = list(filter(lambda x: x[1] & item_ids, lotus_plans))