from enum import Enum, auto
from typing import Optional
class OptionType(Enum):
Call = auto()
Put = auto()
class Inputs:
def __new__(cls, option_type: OptionType, s: float, k: float, p: Optional[float], r: float, q: float, t: float, sigma: Optional[float]) -> Inputs: ...
def __str__(self) -> str: ...
def calc_price(self) -> float: ...
def calc_delta(self) -> float: ...
def calc_gamma(self) -> float: ...
def calc_vega(self) -> float: ...
def calc_theta(self) -> float: ...
def calc_rho(self) -> float: ...
def calc_iv(self, tolerance: float) -> float: ...