Skip to content
Snippets Groups Projects
Commit 1f26a241 authored by Felix Fischer's avatar Felix Fischer :shrimp:
Browse files

Added new stubs

parent 897d2d68
Branches
Tags
1 merge request!49Added new stubs
Pipeline #1114985 passed
......@@ -39,7 +39,16 @@ flake8:
python-tests:
stage: testing
script:
- pytest -v tests/
- pip install pytest-cov
- >
pytest -v --cov=src --cov-report term
--cov-report xml:coverage.xml tests/
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
mypy:
stage: static analysis
......
......@@ -261,6 +261,9 @@ class Axes:
def pause(self, time: float) -> None: ...
def axvline(
self, x: float = 0, ymin: float = 0, ymax: float = 1) -> None: ...
def figure(figsize: Optional[Tuple[float, float]] = None) -> Figure: ...
......@@ -385,3 +388,13 @@ def grid(visible: Optional[bool] = None, which: str = "major")\
-> None: ...
def title(text: str) -> None: ...
def axvline(x: float = 0, ymin: float = 0, ymax: float = 1) -> None: ...
def fill_between(
x: In, y1: In, y2: Union[In, float] = 0,
where: Union[None, In] = None, alpha: Optional[float] = None,
color: Union[None, str, Tuple[float, float, float]] = None,
facecolor: Union[None, str, Tuple[float, float, float]] = None,
edgecolor: Union[
None, str, Tuple[float, float, float]] = None) -> None: ...
......@@ -5,4 +5,4 @@ useful across several different projects and repositories. It also contains
stub-files with several data-type annotations for scipy and matplot-lib
functions."""
__version__ = "1.7.15"
__version__ = "1.7.16"
......@@ -13,8 +13,8 @@ Input = TypeVar("Input", float, list[float], Matrix, Vector, Tensor)
def curve_fit(
func: Callable[..., Input],
x: Union[Vector, list[float]],
y: Union[Vector, list[float]],
xdata: Union[Vector, list[float]],
ydata: Union[Vector, list[float]],
p0: Optional[Union[List[float], tuple[float]]] = None,
bounds: Optional[Any] = None)\
-> Tuple[Vector, Matrix]: ...
......
......@@ -31,24 +31,28 @@ Double = Union[tuple[Vector, Vector], tuple[list[float], list[float]]]
@overload
def savgol_filter(
values: Single, window: Union[int, float], order: int,
x: Single, window_length: Union[int, float], polyorder: int,
deriv: Optional[int] = None, delta: Optional[float] = None,
mode: str = "nearest") -> Vector: ...
@overload
def savgol_filter(
values: Double, window: Union[int, float], order: int,
x: Double, window_length: Union[int, float], polyorder: int,
deriv: Optional[int] = None, delta: Optional[float] = None,
mode: str = "nearest")\
-> tuple[Vector, Vector]: ...
def sosfilt(
sos: Single, x: Single, axis: int = -1, zi: Optional[Single] = None)\
sos: Single, x: Single, axis: int = -1, zi: Optional[Single] = None,
padtype: Optional[str] = "odd", padlen: Optional[int] = None)\
-> Vector: ...
def sosfiltfilt(
sos: Single, x: Single, axis: int = -1, zi: Optional[Single] = None)\
sos: Single, x: Single, axis: int = -1, zi: Optional[Single] = None,
padtype: Optional[str] = "odd", padlen: Optional[int] = None)\
-> Vector: ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment