From 7e5d650963c96fa9bd48b6288616901de830bf7d Mon Sep 17 00:00:00 2001 From: Felix Fischer <f.fischer@ifas.rwth-aachen.de> Date: Wed, 22 Nov 2023 09:48:18 +0100 Subject: [PATCH] fixed syntax errrors in constants.pyi --- src/scientific_plots/__init__.py | 2 +- src/scipy-stubs/constants.pyi | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/scientific_plots/__init__.py b/src/scientific_plots/__init__.py index 169c5e1..0d1ba1d 100644 --- a/src/scientific_plots/__init__.py +++ b/src/scientific_plots/__init__.py @@ -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.8.0" +__version__ = "1.8.1" diff --git a/src/scipy-stubs/constants.pyi b/src/scipy-stubs/constants.pyi index e8d4acd..2b63000 100644 --- a/src/scipy-stubs/constants.pyi +++ b/src/scipy-stubs/constants.pyi @@ -2,6 +2,8 @@ """ Stub file for sciypy-constants. """ +from typing import Dict, Tuple + pi: float golden: float golden_ratio: float @@ -11,13 +13,13 @@ Boltzmann: float gas_constant: float -value(key: str) -> float: ... +def value(key: str) -> float: ... -unit(key: str) -> str: ... +def unit(key: str) -> str: ... -precision(key: str) -> float: ... +def precision(key: str) -> float: ... -physical_constants: dict[str, tuple[float, str, float]] +physical_constants: Dict[str, Tuple[float, str, float]] -- GitLab