mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-22 06:03:23 +02:00
fix: Minor issues that were breaking tests
This commit is contained in:
@@ -6,7 +6,7 @@ import re
|
|||||||
from typing import IO, Iterable
|
from typing import IO, Iterable
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from django.db.models imort Model
|
from django.db.models import Model
|
||||||
|
|
||||||
from ..util import (
|
from ..util import (
|
||||||
htmldecode,
|
htmldecode,
|
||||||
|
@@ -7,6 +7,9 @@ from typing import IO, Iterable, Optional
|
|||||||
from configparser import ConfigParser
|
from configparser import ConfigParser
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
from django.db.models import Model
|
||||||
|
|
||||||
from ..vendor.pocket import Pocket
|
from ..vendor.pocket import Pocket
|
||||||
|
|
||||||
from ..util import enforce_types
|
from ..util import enforce_types
|
||||||
@@ -96,7 +99,7 @@ def should_parse_as_pocket_api(text: str) -> bool:
|
|||||||
|
|
||||||
|
|
||||||
@enforce_types
|
@enforce_types
|
||||||
def parse_pocket_api_export(input_buffer: IO[str], **_kwargs) -> Iterable[Link]:
|
def parse_pocket_api_export(input_buffer: IO[str], **_kwargs) -> Iterable[Model]:
|
||||||
"""Parse bookmarks from the Pocket API"""
|
"""Parse bookmarks from the Pocket API"""
|
||||||
|
|
||||||
input_buffer.seek(0)
|
input_buffer.seek(0)
|
||||||
|
Reference in New Issue
Block a user