-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not ignore missing imports in mypy run by default (#2187)
Under the global config `ignore_missing_imports`, if mypy does not detect a `py.typed` file, it will use stubs, but only if available, for all our dependencies. Otherwise it will assume `Any` as types for all dependencies, meaning no type hinting. In this PR: * remove the global `ignore_missing_imports` * add dependency pandas-stubs * for dependencies that gave errors and could not easily find stubs, added to ignore list (see `pyproject.toml`. We can iterate on this in the future * make changes to code base to deal with type errors that were not noticed before due to this global config
- Loading branch information
Showing
6 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,5 @@ sphinxcontrib-napoleon | |
commonmark==0.9.1 | ||
numpydoc==1.1.0 | ||
|
||
# Stub files | ||
pandas-stubs==1.2.0.39 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters