Skip to content

Handle relative imports for users #21

@rosskipp

Description

@rosskipp

We don't seem to handle relative imports very well. This can lead to confusion and frustration.

Currently, if someone does this, we won't get the import (TODO - not sure this is exactly right) :

from package.something.whatever import NewInstance

class MyObject(param1, param2)
    ...
    ...

NewInstance = MyObject(param1, param2)

They have to do this instead:

from package.something.wahtever import MyObject

NewInstance = MyObject(param1, param2)

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