Skip to content

No Attribute Error for modules #8210

@nameer

Description

@nameer

To help you understand the issue:

  • I'm Reporting a bug
  • So far I have mypy installed using PyPI (pip install mypy). Also, I have torch installed (pip install torch==1.2.0+cpu torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html). In code, I'm using the module torch.jit.
  • What is the actual behavior/output? Module has no attribute "jit"
  • What is the behavior/output you expect? No error
  • What are the versions of mypy and Python you are using? I tried mypy 0.760, 0.761 as well as 0.720 (I was using this earlier, which had no error). Python version is 3.6.9.
  • I'm using no extra flags, just mypy -p proj

Please feel free to edit the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    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