Skip to content

Commit 507cf75

Browse files
author
Andrei
committed
fixed 'mypy -p htmldate' complaint
1 parent 407ff32 commit 507cf75

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

htmldate/extractors.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
# coverage for date parsing
1414
from dateparser import DateDataParser # type: ignore # third-party, slow
15-
from dateparser_data.settings import default_parsers
1615

1716
from dateutil.parser import parse as dateutil_parse
1817

@@ -34,9 +33,8 @@
3433
settings={
3534
"NORMALIZE": True, # False may be faster
3635
"PARSERS": [
37-
p
38-
for p in default_parsers
39-
if p not in ("no-spaces-time", "relative-time", "timestamp")
36+
"custom-formats",
37+
"absolute-time",
4038
],
4139
"PREFER_DATES_FROM": "past",
4240
"PREFER_LOCALE_DATE_ORDER": True,

0 commit comments

Comments
 (0)