-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix all reportAssertTypeFailure+reportGeneralTypeIssues (#339)
- Loading branch information
Showing
23 changed files
with
42 additions
and
69 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import platform | ||
import sys | ||
|
||
from ..utils.fixes import threadpool_info as threadpool_info | ||
|
||
# License: BSD 3 clause | ||
|
||
def show_versions(): ... |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,23 @@ | ||
import sys | ||
from importlib import resources as resources | ||
from typing import Literal, Mapping | ||
|
||
import numpy as np | ||
import scipy | ||
import scipy.stats | ||
import sklearn | ||
import threadpoolctl | ||
from numpy import percentile as percentile | ||
from scipy.linalg import eigh as _eigh | ||
from scipy.optimize._linesearch import ( # explicitly re-exported | ||
line_search_wolfe1 as line_search_wolfe1, | ||
line_search_wolfe2 as line_search_wolfe2, | ||
) | ||
from threadpoolctl import _ThreadpoolLimiter | ||
|
||
from ..externals._lobpcg import lobpcg as lobpcg | ||
from ..externals._packaging.version import parse as parse_version | ||
from .deprecation import deprecated | ||
from .parallel import delayed | ||
# Version-based re-exports | ||
from numpy.exceptions import ComplexWarning as ComplexWarning, VisibleDeprecationWarning as VisibleDeprecationWarning | ||
from scipy.integrate import trapezoid as trapezoid | ||
from scipy.optimize._linesearch import line_search_wolfe1 as line_search_wolfe1, line_search_wolfe2 as line_search_wolfe2 | ||
from scipy.sparse.csgraph import laplacian as laplacian | ||
|
||
np_version = ... | ||
np_base_version = ... | ||
sp_version = ... | ||
|
||
class loguniform(scipy.stats.reciprocal): ... | ||
|
||
def threadpool_limits( | ||
limits: None | Mapping | str | int = None, | ||
user_api: None | Literal["blas", "openmp"] = None, | ||
) -> _ThreadpoolLimiter: ... | ||
|
||
threadpool_limits.__doc__ = ... | ||
|
||
def threadpool_info() -> list[dict[str, int | str] | dict[str, str | None | int]]: ... | ||
|
||
threadpool_info.__doc__ = ... | ||
|
||
@deprecated( | ||
"The function `delayed` has been moved from `sklearn.utils.fixes` to " | ||
"`sklearn.utils.parallel`. This import path will be removed in 1.5." | ||
) | ||
def delayed(function): ... | ||
sp_base_version = ... | ||
CSR_CONTAINERS = ... | ||
CSC_CONTAINERS = ... | ||
COO_CONTAINERS = ... | ||
LIL_CONTAINERS = ... | ||
DOK_CONTAINERS = ... | ||
BSR_CONTAINERS = ... | ||
DIA_CONTAINERS = ... | ||
SPARRAY_PRESENT: bool | ||
SPARSE_ARRAY_PRESENT: bool | ||
percentile = ... | ||
|
||
def pd_fillna(pd, frame): ... | ||
def tarfile_extractall(tarfile, path) -> None: ... |
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
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