new module: Harmonic app for Hackernews
This commit is contained in:
parent
01480ec8eb
commit
8addd2d58a
4 changed files with 138 additions and 0 deletions
|
@ -1,2 +1,20 @@
|
|||
from typing import Protocol
|
||||
|
||||
from my.core import datetime_aware, Json
|
||||
|
||||
|
||||
def hackernews_link(id: str) -> str:
|
||||
return f'https://news.ycombinator.com/item?id={id}'
|
||||
|
||||
|
||||
class SavedBase(Protocol):
|
||||
@property
|
||||
def when(self) -> datetime_aware: ...
|
||||
@property
|
||||
def uid(self) -> str: ...
|
||||
@property
|
||||
def url(self) -> str: ...
|
||||
@property
|
||||
def title(self) -> str: ...
|
||||
@property
|
||||
def hackernews_link(self) -> str: ...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue