Skip to content

Commit abce286

Browse files
committed
bug-fixed for import (pyright gone wrong!)
Signed-off-by: Nick Papior <[email protected]>
1 parent d9727c4 commit abce286

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/sisl/physics/distribution.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
44
from __future__ import annotations
55

6-
from numpy._typing import ArrayLike
7-
86
"""Distribution functions
97
=========================
108
@@ -86,7 +84,7 @@ def get_distribution(
8684

8785
@set_module("sisl.physics")
8886
def gaussian(
89-
x: npt.ArrayLike, sigma: float = 0.1, x0: Union[float, npt.npt.ArrayLike] = 0.0
87+
x: npt.ArrayLike, sigma: float = 0.1, x0: Union[float, npt.ArrayLike] = 0.0
9088
) -> np.ndarray:
9189
r"""Gaussian distribution function
9290
@@ -113,7 +111,7 @@ def gaussian(
113111

114112
@set_module("sisl.physics")
115113
def lorentzian(
116-
x: npt.ArrayLike, gamma: float = 0.1, x0: Union[float, npt.npt.ArrayLike] = 0.0
114+
x: npt.ArrayLike, gamma: float = 0.1, x0: Union[float, npt.ArrayLike] = 0.0
117115
) -> np.ndarray:
118116
r"""Lorentzian distribution function
119117

0 commit comments

Comments
 (0)