Skip to content

mypy seemingly can't find types for this package #26

Closed
@ezyang

Description

@ezyang

When I attempt to run mypy, I get:

ghstack/github_fake.py:1: error: Cannot find module named 'graphql'
ghstack/github_fake.py:1: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports

Now, I know that you guys have types... but the mypy docs seem to suggest that you need to do something extra to get mypy to treat the third party package as having types?

As a temporary workaround, I've symlinked graphql in my local directory to graphql-core-next/graphql and that convinces mypy to check the ytpes.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions