Skip to content

Commit

Permalink
bug-fixed for import (pyright gone wrong!)
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Papior <[email protected]>
  • Loading branch information
zerothi committed Jan 8, 2025
1 parent d9727c4 commit abce286
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sisl/physics/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
from __future__ import annotations

from numpy._typing import ArrayLike

"""Distribution functions
=========================
Expand Down Expand Up @@ -86,7 +84,7 @@ def get_distribution(

@set_module("sisl.physics")
def gaussian(
x: npt.ArrayLike, sigma: float = 0.1, x0: Union[float, npt.npt.ArrayLike] = 0.0
x: npt.ArrayLike, sigma: float = 0.1, x0: Union[float, npt.ArrayLike] = 0.0
) -> np.ndarray:
r"""Gaussian distribution function
Expand All @@ -113,7 +111,7 @@ def gaussian(

@set_module("sisl.physics")
def lorentzian(
x: npt.ArrayLike, gamma: float = 0.1, x0: Union[float, npt.npt.ArrayLike] = 0.0
x: npt.ArrayLike, gamma: float = 0.1, x0: Union[float, npt.ArrayLike] = 0.0
) -> np.ndarray:
r"""Lorentzian distribution function
Expand Down

0 comments on commit abce286

Please sign in to comment.