Skip to content

Add comment explaining how to properly import types #338

Open
@maksimdrachov

Description

@maksimdrachov

sirius_cyber_corp example shows how to work with types in the top directory, however if the type is located in a folder, one has to make sure to import the type as follows:

import top_folder.sub_folder.some_type # import like this
top_folder.sub_folder.some_type # use like this

# This won't work
import top_folder
top_folder.sub_folder.some_type # This will give an error
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions