@@ -43,20 +43,16 @@ class ShinOptimisationDetails(Generic[OutputT]):
43
43
z : float
44
44
45
45
@overload
46
- def __getitem__ (self , key : Literal ["implied_probabilities" ]) -> OutputT :
47
- ...
46
+ def __getitem__ (self , key : Literal ["implied_probabilities" ]) -> OutputT : ...
48
47
49
48
@overload
50
- def __getitem__ (self , key : Literal ["iterations" ]) -> float :
51
- ...
49
+ def __getitem__ (self , key : Literal ["iterations" ]) -> float : ...
52
50
53
51
@overload
54
- def __getitem__ (self , key : Literal ["delta" ]) -> float :
55
- ...
52
+ def __getitem__ (self , key : Literal ["delta" ]) -> float : ...
56
53
57
54
@overload
58
- def __getitem__ (self , key : Literal ["z" ]) -> float :
59
- ...
55
+ def __getitem__ (self , key : Literal ["z" ]) -> float : ...
60
56
61
57
def __getitem__ (
62
58
self , key : Literal ["implied_probabilities" , "iterations" , "delta" , "z" ]
@@ -76,8 +72,7 @@ def calculate_implied_probabilities(
76
72
convergence_threshold : float = ...,
77
73
full_output : Literal [False ] = False ,
78
74
force_python_optimiser : bool = ...,
79
- ) -> list [float ]:
80
- ...
75
+ ) -> list [float ]: ...
81
76
82
77
83
78
# mapping, full output False
@@ -89,8 +84,7 @@ def calculate_implied_probabilities(
89
84
convergence_threshold : float = ...,
90
85
full_output : Literal [False ] = False ,
91
86
force_python_optimiser : bool = ...,
92
- ) -> dict [T , float ]:
93
- ...
87
+ ) -> dict [T , float ]: ...
94
88
95
89
96
90
# sequence, full output True
@@ -102,8 +96,7 @@ def calculate_implied_probabilities(
102
96
convergence_threshold : float = ...,
103
97
full_output : Literal [True ],
104
98
force_python_optimiser : bool = ...,
105
- ) -> ShinOptimisationDetails [list [float ]]:
106
- ...
99
+ ) -> ShinOptimisationDetails [list [float ]]: ...
107
100
108
101
109
102
# mapping, full output True
@@ -115,8 +108,7 @@ def calculate_implied_probabilities(
115
108
convergence_threshold : float = ...,
116
109
full_output : Literal [True ],
117
110
force_python_optimiser : bool = ...,
118
- ) -> ShinOptimisationDetails [dict [T , float ]]:
119
- ...
111
+ ) -> ShinOptimisationDetails [dict [T , float ]]: ...
120
112
121
113
122
114
def calculate_implied_probabilities (
0 commit comments