new module: Harmonic app for Hackernews

This commit is contained in:
Dima Gerasimov 2023-09-25 10:41:36 +01:00 committed by karlicoss
parent 01480ec8eb
commit 8addd2d58a
4 changed files with 138 additions and 0 deletions

View file

@ -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: ...