Skip to content

Commit dab48ba

Browse files
committed
Apply black formatting
1 parent 2e14d42 commit dab48ba

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

python/shin/__init__.py

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,16 @@ class ShinOptimisationDetails(Generic[OutputT]):
4343
z: float
4444

4545
@overload
46-
def __getitem__(self, key: Literal["implied_probabilities"]) -> OutputT:
47-
...
46+
def __getitem__(self, key: Literal["implied_probabilities"]) -> OutputT: ...
4847

4948
@overload
50-
def __getitem__(self, key: Literal["iterations"]) -> float:
51-
...
49+
def __getitem__(self, key: Literal["iterations"]) -> float: ...
5250

5351
@overload
54-
def __getitem__(self, key: Literal["delta"]) -> float:
55-
...
52+
def __getitem__(self, key: Literal["delta"]) -> float: ...
5653

5754
@overload
58-
def __getitem__(self, key: Literal["z"]) -> float:
59-
...
55+
def __getitem__(self, key: Literal["z"]) -> float: ...
6056

6157
def __getitem__(
6258
self, key: Literal["implied_probabilities", "iterations", "delta", "z"]
@@ -76,8 +72,7 @@ def calculate_implied_probabilities(
7672
convergence_threshold: float = ...,
7773
full_output: Literal[False] = False,
7874
force_python_optimiser: bool = ...,
79-
) -> list[float]:
80-
...
75+
) -> list[float]: ...
8176

8277

8378
# mapping, full output False
@@ -89,8 +84,7 @@ def calculate_implied_probabilities(
8984
convergence_threshold: float = ...,
9085
full_output: Literal[False] = False,
9186
force_python_optimiser: bool = ...,
92-
) -> dict[T, float]:
93-
...
87+
) -> dict[T, float]: ...
9488

9589

9690
# sequence, full output True
@@ -102,8 +96,7 @@ def calculate_implied_probabilities(
10296
convergence_threshold: float = ...,
10397
full_output: Literal[True],
10498
force_python_optimiser: bool = ...,
105-
) -> ShinOptimisationDetails[list[float]]:
106-
...
99+
) -> ShinOptimisationDetails[list[float]]: ...
107100

108101

109102
# mapping, full output True
@@ -115,8 +108,7 @@ def calculate_implied_probabilities(
115108
convergence_threshold: float = ...,
116109
full_output: Literal[True],
117110
force_python_optimiser: bool = ...,
118-
) -> ShinOptimisationDetails[dict[T, float]]:
119-
...
111+
) -> ShinOptimisationDetails[dict[T, float]]: ...
120112

121113

122114
def calculate_implied_probabilities(

0 commit comments

Comments
 (0)