1
0
Fork 0
mirror of synced 2024-06-02 10:34:43 +12:00

make all parsers accept arbitrary meta kwargs

This commit is contained in:
Nick Sweeting 2020-08-18 08:27:47 -04:00
parent 2e2b4f8150
commit a682a9c478
8 changed files with 8 additions and 8 deletions

View file

@ -13,7 +13,7 @@ from ..util import (
@enforce_types
def parse_generic_json_export(json_file: IO[str]) -> Iterable[Link]:
def parse_generic_json_export(json_file: IO[str], **_kwargs) -> Iterable[Link]:
"""Parse JSON-format bookmarks export files (produced by pinboard.in/export/, or wallabag)"""
json_file.seek(0)

View file

@ -12,7 +12,7 @@ from ..util import (
)
@enforce_types
def parse_generic_rss_export(rss_file: IO[str]) -> Iterable[Link]:
def parse_generic_rss_export(rss_file: IO[str], **_kwargs) -> Iterable[Link]:
"""Parse RSS XML-format files into links"""
rss_file.seek(0)

View file

@ -16,7 +16,7 @@ from ..util import (
@enforce_types
def parse_generic_txt_export(text_file: IO[str]) -> Iterable[Link]:
def parse_generic_txt_export(text_file: IO[str], **_kwargs) -> Iterable[Link]:
"""Parse raw links from each line in a text file"""
text_file.seek(0)

View file

@ -14,7 +14,7 @@ from ..util import (
@enforce_types
def parse_medium_rss_export(rss_file: IO[str]) -> Iterable[Link]:
def parse_medium_rss_export(rss_file: IO[str], **_kwargs) -> Iterable[Link]:
"""Parse Medium RSS feed files into links"""
rss_file.seek(0)

View file

@ -14,7 +14,7 @@ from ..util import (
@enforce_types
def parse_netscape_html_export(html_file: IO[str]) -> Iterable[Link]:
def parse_netscape_html_export(html_file: IO[str], **_kwargs) -> Iterable[Link]:
"""Parse netscape-format bookmarks export files (produced by all browsers)"""
html_file.seek(0)

View file

@ -14,7 +14,7 @@ from ..util import (
@enforce_types
def parse_pinboard_rss_export(rss_file: IO[str]) -> Iterable[Link]:
def parse_pinboard_rss_export(rss_file: IO[str], **_kwargs) -> Iterable[Link]:
"""Parse Pinboard RSS feed files into links"""
rss_file.seek(0)

View file

@ -14,7 +14,7 @@ from ..util import (
@enforce_types
def parse_pocket_html_export(html_file: IO[str]) -> Iterable[Link]:
def parse_pocket_html_export(html_file: IO[str], **_kwargs) -> Iterable[Link]:
"""Parse Pocket-format bookmarks export files (produced by getpocket.com/export/)"""
html_file.seek(0)

View file

@ -13,7 +13,7 @@ from ..util import (
@enforce_types
def parse_shaarli_rss_export(rss_file: IO[str]) -> Iterable[Link]:
def parse_shaarli_rss_export(rss_file: IO[str], **_kwargs) -> Iterable[Link]:
"""Parse Shaarli-specific RSS XML-format files into links"""
rss_file.seek(0)