mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-21 05:41:54 +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 datetime import datetime
|
||||
|
||||
from django.db.models imort Model
|
||||
from django.db.models import Model
|
||||
|
||||
from ..util import (
|
||||
htmldecode,
|
||||
|
@@ -7,6 +7,9 @@ from typing import IO, Iterable, Optional
|
||||
from configparser import ConfigParser
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from django.db.models import Model
|
||||
|
||||
from ..vendor.pocket import Pocket
|
||||
|
||||
from ..util import enforce_types
|
||||
@@ -96,7 +99,7 @@ def should_parse_as_pocket_api(text: str) -> bool:
|
||||
|
||||
|
||||
@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"""
|
||||
|
||||
input_buffer.seek(0)
|
||||
|
Reference in New Issue
Block a user