Skip to content

Add flag prohibiting annotation by Any resulting from an unanalyzed module #3205

Open
@dgoldstein0

Description

@dgoldstein0

example code, in py2.7

import MyType from unanalyzed

def foo(bar):
  # type: (MyType) -> None
  ...

I would expect this to be an error: if mypy doesn't know what MyType is, it shouldn't be a valid type. Instead, it assumes it's Any which is way more permissive behavior than I expect.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions