Skip to content

Commit fc50880

Browse files
committed
avoid numeric tower python/mypy#3186
1 parent 28bd785 commit fc50880

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aocd/types.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from __future__ import annotations
22

33
from datetime import timedelta
4-
from numbers import Number
4+
from typing import Any
55
from typing import Literal
66
from typing import TypedDict
7-
from typing import Union
87

9-
AnswerValue = Union[str, Number]
8+
9+
AnswerValue = Any
1010
"""The answer to a puzzle, either a string or a number. Numbers are coerced to a string"""
1111
PuzzlePart = Literal["a", "b"]
1212
"""The part of a given puzzle, a or b"""

0 commit comments

Comments
 (0)