diff --git a/src/scientific_plots/__init__.py b/src/scientific_plots/__init__.py index 169c5e1dca4d94a9a34bc701c5de6abc63c1aa7d..0d1ba1d342f5f4b764a76a38b1b9896f47e5f660 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 new file mode 100644 index 0000000000000000000000000000000000000000..2b63000c05f9a7b13f856c25b7408130b2356053 --- /dev/null +++ b/src/scipy-stubs/constants.pyi @@ -0,0 +1,25 @@ +#!/usr/bin/env python3 +""" +Stub file for sciypy-constants. +""" +from typing import Dict, Tuple + +pi: float +golden: float +golden_ratio: float +N_A: float +Avogadro: float +Boltzmann: float +gas_constant: float + + +def value(key: str) -> float: ... + + +def unit(key: str) -> str: ... + + +def precision(key: str) -> float: ... + + +physical_constants: Dict[str, Tuple[float, str, float]]