Skip to content

Commit

Permalink
reorder imports
Browse files Browse the repository at this point in the history
  • Loading branch information
wimglenn committed Nov 2, 2024
1 parent 22d3757 commit 7a16c4a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion aocd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from . import models
from . import post
from . import runner
from . import utils
from . import types
from . import utils
from .exceptions import AocdError
from .get import get_data
from .get import get_day_and_year
Expand Down
3 changes: 2 additions & 1 deletion aocd/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import re
import traceback
import typing as t
from logging import Logger, getLogger
from logging import getLogger
from logging import Logger

from ._ipykernel import get_ipynb_path
from .exceptions import AocdError
Expand Down
8 changes: 4 additions & 4 deletions aocd/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
from .exceptions import PuzzleLockedError
from .exceptions import PuzzleUnsolvedError
from .exceptions import UnknownUserError
from .types import AnswerValue
from .types import PuzzlePart
from .types import PuzzleStats
from .types import Submission
from .utils import _ensure_intermediate_dirs
from .utils import _get_soup
from .utils import AOC_TZ
Expand All @@ -33,10 +37,6 @@
from .utils import get_owner
from .utils import get_plugins
from .utils import http
from .types import AnswerValue
from .types import PuzzlePart
from .types import PuzzleStats
from .types import Submission


log: logging.Logger = logging.getLogger(__name__)
Expand Down
4 changes: 3 additions & 1 deletion aocd/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

from datetime import timedelta
from numbers import Number
from typing import Literal, TypedDict, Union
from typing import Literal
from typing import TypedDict
from typing import Union

AnswerValue = Union[str, Number]
"""The answer to a puzzle, either a string or a number. Numbers are coerced to a string"""
Expand Down

0 comments on commit 7a16c4a

Please sign in to comment.