Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hussain-jafari committed Nov 7, 2024
1 parent 160493e commit 7abb9d1
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions src/risk_distributions/risk_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 7abb9d1

Please sign in to comment.