Skip to content

Commit

Permalink
Prefer typing.TypeAlias
Browse files Browse the repository at this point in the history
  • Loading branch information
loociano committed Dec 1, 2024
1 parent 06ec59a commit 9a05204
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aoc2024/src/day01/python/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from collections import Counter
from typing import Sequence
from typing import Sequence, TypeAlias

type _LocationIds = Sequence[int]
_LocationIds: TypeAlias = Sequence[int]

def _parse_input(input: Sequence[str]) -> tuple[_LocationIds, _LocationIds]:
"""Converts puzzle input into 2 sequences of location IDs.
Expand Down

0 comments on commit 9a05204

Please sign in to comment.