Skip to content

pytype can't handle packages #72

@vadimcn

Description

@vadimcn

Create a Python package and a script that uses it:

foo/__init__.py:

# (empty)

foo/bar.py:

def baz():
    print 'foo.bar.baz'

test.py:

from foo.bar import baz
baz()

Running python test.py outputs foo.bar.baz, as expected.

Running pytype test.py produces an error: File "test.py", line 1, in <module>: Can't find module 'foo.bar'. [import-error]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions