mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-10 08:37:19 +01:00
fix(parsers|test_api): fix failed tests
This commit is contained in:
parent
c52d18da1f
commit
3d0a26fdb1
2 changed files with 3 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ import shutil
|
|||
import subprocess
|
||||
import tempfile
|
||||
from typing import Iterator
|
||||
from typing import Match
|
||||
from typing import Optional
|
||||
from typing import Set
|
||||
|
||||
|
|
@ -252,7 +253,7 @@ def parse_date_generator(filename, text) -> Iterator[datetime.datetime]:
|
|||
return None
|
||||
|
||||
def __process_match(
|
||||
match: re.Match[str],
|
||||
match: Match[str],
|
||||
date_order: str,
|
||||
) -> Optional[datetime.datetime]:
|
||||
date_string = match.group(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue