Skip to content

Commit

Permalink
Merge pull request #582 from aiplan4eu/fixing-mypy
Browse files Browse the repository at this point in the history
Fixed issue with the new version of mypy
  • Loading branch information
alvalentini committed Mar 14, 2024
2 parents b6f716b + 7847ac4 commit 884b13a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unified_planning/model/delta_stn.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

from collections import deque
from dataclasses import dataclass
from numbers import Real
from fractions import Fraction
from typing import Deque, Dict, List, Optional, Any, Generic, Set, Tuple, TypeVar, cast


T = TypeVar("T", bound=Real)
T = TypeVar("T", Fraction, float, int)


@dataclass
Expand Down Expand Up @@ -60,7 +60,7 @@ def __init__(
constraints: Optional[Dict[Any, Optional[DeltaNeighbors[T]]]] = None,
distances: Optional[Dict[Any, T]] = None,
is_sat: bool = True,
epsilon: T = cast(T, 0),
epsilon=cast(T, 0),
):
self._constraints: Dict[Any, Optional[DeltaNeighbors[T]]] = (
constraints if constraints is not None else {}
Expand Down

0 comments on commit 884b13a

Please sign in to comment.