This commit is contained in:
AJ Slater 2024-03-04 12:32:04 -08:00
parent 9031295b4d
commit 213cd6f7b0
2 changed files with 6 additions and 1 deletions

View File

@ -1,12 +1,13 @@
"""Parse comic book archive names using the simple 'parse' parser."""
from __future__ import annotations
from calendar import month_abbr
from copy import copy
from pathlib import Path
from pprint import pformat
from re import Match, Pattern
from sys import maxsize
from typing import TYPE_CHECKING
from comicfn2dict.log import print_log_header
from comicfn2dict.regex import (
@ -35,6 +36,9 @@ from comicfn2dict.regex import (
YEAR_TOKEN_RE,
)
if TYPE_CHECKING:
from re import Match, Pattern
_DATE_KEYS = frozenset({"year", "month", "day"})
_REMAINING_GROUP_KEYS = ("series", "title")
# Ordered by commonness.

View File

@ -1,4 +1,5 @@
"""Unparse comic filenames."""
from __future__ import annotations
from calendar import month_abbr