Skip to content

Commit

Permalink
Black format.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterschutt committed Jan 31, 2024
1 parent db0d13e commit 7a28f3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/shin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from collections.abc import Mapping, Sequence
from dataclasses import dataclass
from math import sqrt
from typing import Any, Generic, Literal, TypeAlias, TypeVar, overload
from typing import Generic, Literal, TypeVar, overload

from .shin import optimise as _optimise_rust

Expand Down Expand Up @@ -102,7 +102,9 @@ def calculate_implied_probabilities(
convergence_threshold: float = 1e-12,
full_output: bool = False,
force_python_optimiser: bool = False,
) -> FullOutput[list[float]] | FullOutput[dict[T, float]] | list[float] | dict[T, float]:
) -> (
FullOutput[list[float]] | FullOutput[dict[T, float]] | list[float] | dict[T, float]
):
odds_seq = odds.values() if isinstance(odds, Mapping) else odds

if len(odds_seq) < 2:
Expand Down

0 comments on commit 7a28f3b

Please sign in to comment.