-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Description
When running mypy following the procedure below, I encounter several errors for the overloaded open builtin of the form:
../python3.11/site-packages/mypy/typeshed/stdlib/builtins.pyi:1327: error: Argument 8 to "open" becomes "Optional[Any]" due to an unfollowed import [no-any-unimported]
To reproduce:
- Set up a virtualenv with Python 3.11 and activate it.
pip install mypypython-m mypy --strict --no-silence-site-packages --disallow-any-unimported -m mypy
Both --no-silence-site-packages and --disallow-any-unimported need to be present.
Version 1.0.0 of mypy is required. Older versions don't exhibit this error.
This is the simplest way we have found to reproduce this problem, but we first encountered it in one of our own projects.
The issue is being filed here because the mypy docs for reporting bugs says that problems with a specific library function should be reported here. We're not seeing this error with any other functions.
sarahmonod and ericvw
Metadata
Metadata
Assignees
Labels
No labels