Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix cmdline package tests for namespace packages#11323

Merged
JelleZijlstra merged 1 commit into
python:masterpython/mypy:masterfrom
nipunn1313:cmdlinenipunn1313/mypy:cmdlineCopy head branch name to clipboard
Oct 13, 2021
Merged

Fix cmdline package tests for namespace packages#11323
JelleZijlstra merged 1 commit into
python:masterpython/mypy:masterfrom
nipunn1313:cmdlinenipunn1313/mypy:cmdlineCopy head branch name to clipboard

Conversation

@nipunn1313

@nipunn1313 nipunn1313 commented Oct 12, 2021

Copy link
Copy Markdown
Contributor

Prep for #9636

First test was failing because a was not a valid import (pkg.a was)

Second test was failing because foo.py resolved in two ways, both
as foo and foo.foo. Disambiguating the dir from the file made
mypy path work better. The error message was very clear. Came up once
foo can be a namespace package.

Confirmed that all these tests pass here - as well as on top of #9636

Prep for python#9636

First test was failing because a was not a valid import (pkg.a was)

Second test  was failing because `foo.py` resolved in two ways, both
as `foo` and `foo.foo`. Disambiguating the dir from the file made
mypy path work better. The error message was very clear. Came up once
foo can be a namespace package.
@nipunn1313

Copy link
Copy Markdown
Contributor Author

Needs rebase on #11324

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.