Replace wildcard import from db_calls_card_creation
#13
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-card-creation#13
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
creation_helpers.py:15—from db_calls_card_creation import *. Imports all Peewee ORM model classes and transitivefrom peewee import *into namespace. Causes namespace pollution and masks NameErrors.Priority: medium | Labels: tech-debt
Opened PR #34 to fix this.
Replaced
from db_calls_card_creation import *withfrom db_calls_card_creation import PitcherData— the only symbol from that module actually used increation_helpers.py. This eliminates the transitivefrom peewee import *namespace pollution.