-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Needs Design ProposalNeeds DiscussionIssues where the implementation still needs to be discussed.Issues where the implementation still needs to be discussed.deferred
Description
setuptools version
setuptools==64.0.2
Python version
3.10
OS
macOS, Linux
Additional environment information
No response
Description
After installing editable packages (with a pyproject.toml) with setuptools >=64, mypy is no longer able to find the py.typed files when checking a codebase importing/referencing the editable installed package.
This was opened as a mypy issue in python/mypy#13392, but they recommended we open an issue here. I'm guessing there will be some further discussion on both sides, but just getting the ball rolling.
Expected behavior
Editable installs are still discoverable by static type checkers.
How to Reproduce
See the README in https://github.com/JacobHayes/editable-install-hooks-repro
Output
$ mypy --namespace-packages --explicit-package-bases src
src/org/pkg2/__init__.py:1: error: Cannot find implementation or library stub for module named "org.pkg1"
src/org/pkg2/__init__.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)
$ pylint src/
************* Module org.pkg2
src/org/pkg2/__init__.py:2:0: E0611: No name 'pkg1' in module 'org' (no-name-in-module)
-----------------------------------
Your code has been rated at 0.00/10SyntaxColoring, onerandomusername, hauntsaninja, AlexWaygood, Pierre-Sassoulas and 28 moreMetRonniepetergaultney, tlambert03, 5j9 and hspak
Metadata
Metadata
Assignees
Labels
Needs Design ProposalNeeds DiscussionIssues where the implementation still needs to be discussed.Issues where the implementation still needs to be discussed.deferred