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

Merge branch 'coverage' into 'master'

Added new stubs

See merge request !49
parents 897d2d68 1f26a241
No related branches found
No related tags found
1 merge request!49Added new stubs
Pipeline #1115022 passed
...@@ -39,7 +39,16 @@ flake8: ...@@ -39,7 +39,16 @@ flake8:
python-tests: python-tests:
stage: testing stage: testing
script: 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: mypy:
stage: static analysis stage: static analysis
......
...@@ -261,6 +261,9 @@ class Axes: ...@@ -261,6 +261,9 @@ class Axes:
def pause(self, time: float) -> None: ... 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: ... def figure(figsize: Optional[Tuple[float, float]] = None) -> Figure: ...
...@@ -385,3 +388,13 @@ def grid(visible: Optional[bool] = None, which: str = "major")\ ...@@ -385,3 +388,13 @@ def grid(visible: Optional[bool] = None, which: str = "major")\
-> None: ... -> None: ...
def title(text: str) -> 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 ...@@ -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 stub-files with several data-type annotations for scipy and matplot-lib
functions.""" functions."""
__version__ = "1.7.15" __version__ = "1.7.16"
...@@ -13,8 +13,8 @@ Input = TypeVar("Input", float, list[float], Matrix, Vector, Tensor) ...@@ -13,8 +13,8 @@ Input = TypeVar("Input", float, list[float], Matrix, Vector, Tensor)
def curve_fit( def curve_fit(
func: Callable[..., Input], func: Callable[..., Input],
x: Union[Vector, list[float]], xdata: Union[Vector, list[float]],
y: Union[Vector, list[float]], ydata: Union[Vector, list[float]],
p0: Optional[Union[List[float], tuple[float]]] = None, p0: Optional[Union[List[float], tuple[float]]] = None,
bounds: Optional[Any] = None)\ bounds: Optional[Any] = None)\
-> Tuple[Vector, Matrix]: ... -> Tuple[Vector, Matrix]: ...
......
...@@ -31,24 +31,28 @@ Double = Union[tuple[Vector, Vector], tuple[list[float], list[float]]] ...@@ -31,24 +31,28 @@ Double = Union[tuple[Vector, Vector], tuple[list[float], list[float]]]
@overload @overload
def savgol_filter( 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: ... mode: str = "nearest") -> Vector: ...
@overload @overload
def savgol_filter( 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")\ mode: str = "nearest")\
-> tuple[Vector, Vector]: ... -> tuple[Vector, Vector]: ...
def sosfilt( 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: ... -> Vector: ...
def sosfiltfilt( 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: ... -> Vector: ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment