Skip to content

Import all classes in the toplevel __init__.py #287

Description

@andlaus

this would allow to import all classes directly in external code instead of having to know the sub-module where the class of interest is defined. example: With this,

from odxtools.diaglayer import DiagLayer

could be replaced by

from odxtools import DiagLayer

On the flipside, this increases the effort required for maintenance, because all classes provided by the project would need to be imported to __init__.py.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions