Skip to content

IMPROVEMENT: remove wildcard imports #258

@melange396

Description

@melange396

using the wildcard import can introduce problems when debugging. it puts objects into scope without being declared or assigned, and hunting those down can be difficult. this can be even worse if multiple imports have name collisions.

for example, instead of: delphi_emr_hosp.constants import *
we can use: delphi_emr_hosp.constants import NA, SIGNALS
or even: from delphi_emr_hosp import constants as c # then use c.NA and c.SIGNALS

the choice is up to the implementer for brevity's or readability's sake.
there are many of these in the repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorLong-term projects to revise existing machinery

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions