Skip to content

Commit

Permalink
fix type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
EltonChou committed Aug 28, 2022
1 parent 7f07c87 commit 7ecfbcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EorzeaEnv/eorzea_rainwbow.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import copy
from collections import deque
from dataclasses import dataclass
from typing import MutableSequence
from typing import MutableSequence, Set

from .Data.TerritoryWeather import territory_weather as _territory_weather
from .Data.WeatherRate import weather_rate as _weather_rate
Expand Down Expand Up @@ -55,7 +55,7 @@ def append(self, time: EorzeaTime, raw_weather: int):
def _is_rainbow_possible(place_name: EorzeaPlaceName) -> bool:
weather_rate_index = _territory_weather[place_name.index]
weather_rate = _weather_rate[weather_rate_index]
possible_weathers: set[int] = {
possible_weathers: Set[int] = {
w[1]
for w in weather_rate
}
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ envlist = python3.8, python3.9, py310
whitelist_externals = poetry
commands =
poetry install
flake8
mypy
pytest

0 comments on commit 7ecfbcc

Please sign in to comment.