From 7abb9d1d00300621ffcc6e2f7a8dc40257cb4137 Mon Sep 17 00:00:00 2001 From: Hussain Jafari Date: Thu, 7 Nov 2024 12:56:07 -0800 Subject: [PATCH] lint --- src/risk_distributions/risk_distributions.py | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/src/risk_distributions/risk_distributions.py b/src/risk_distributions/risk_distributions.py index 5c488db..f4c5fb5 100644 --- a/src/risk_distributions/risk_distributions.py +++ b/src/risk_distributions/risk_distributions.py @@ -113,9 +113,7 @@ def process( """ return data - def pdf( - self, x: pd.Series | np.ndarray | float | int - ) -> pd.Series | np.ndarray | float: + def pdf(self, x: pd.Series | np.ndarray | float | int) -> pd.Series | np.ndarray | float: single_val = isinstance(x, (float, int)) values_only = isinstance(x, np.ndarray) @@ -150,9 +148,7 @@ def pdf( p = p.values return p - def ppf( - self, q: pd.Series | np.ndarray | float | int - ) -> pd.Series | np.ndarray | float: + def ppf(self, q: pd.Series | np.ndarray | float | int) -> pd.Series | np.ndarray | float: single_val = isinstance(q, (float, int)) values_only = isinstance(q, np.ndarray) @@ -187,9 +183,7 @@ def ppf( x = x.values return x - def cdf( - self, x: pd.Series | np.ndarray | float | int - ) -> pd.Series | np.ndarray | float: + def cdf(self, x: pd.Series | np.ndarray | float | int) -> pd.Series | np.ndarray | float: single_val = isinstance(x, (float, int)) values_only = isinstance(x, np.ndarray) @@ -597,9 +591,7 @@ def get_parameters( return weights, params - def pdf( - self, x: pd.Series | np.ndarray | float | int - ) -> pd.Series | np.ndarray | float: + def pdf(self, x: pd.Series | np.ndarray | float | int) -> pd.Series | np.ndarray | float: single_val = isinstance(x, (float, int)) values_only = isinstance(x, np.ndarray) @@ -673,9 +665,7 @@ def ppf( x = x.values return x - def cdf( - self, x: pd.Series | np.ndarray | float | int - ) -> pd.Series | np.ndarray | float: + def cdf(self, x: pd.Series | np.ndarray | float | int) -> pd.Series | np.ndarray | float: single_val = isinstance(x, (float, int)) values_only = isinstance(x, np.ndarray)