Closed enioluwas closed 4 years ago
Submodules that are single class exports currently have to be imported externally like so:
from chariot.device.configuration.DeviceConfiguration import DeviceConfiguration
If the __init__ file in chariot/device/configuration does this import, then they can be imported like this instead:
__init__
from chariot.device.configuration import DeviceConfiguration
This looks shorter and less redundant. This change will have to be made across the entire core.
Submodules that are single class exports currently have to be imported externally like so:
from chariot.device.configuration.DeviceConfiguration import DeviceConfiguration
If the
__init__
file in chariot/device/configuration does this import, then they can be imported like this instead:from chariot.device.configuration import DeviceConfiguration
This looks shorter and less redundant. This change will have to be made across the entire core.