From 753de66e087581f5dcad843b012faadfc7c8dcb1 Mon Sep 17 00:00:00 2001 From: Hazel Noack Date: Thu, 22 May 2025 12:59:50 +0200 Subject: [PATCH] feat: started cleaning up context --- stsg/definitions.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 stsg/definitions.py diff --git a/stsg/definitions.py b/stsg/definitions.py new file mode 100644 index 0000000..d1e254f --- /dev/null +++ b/stsg/definitions.py @@ -0,0 +1,26 @@ +from typing import TypedDict + + +class ArticleConfig(TypedDict): + slug: str + name: str + iso_date: str + author: str + + +class ArticleContext(TypedDict): + slug: str + name: str + url: str + date: str + iso_date: str + author: str + + +class ArticleTranslationContext(TypedDict): + slug: str + name: str + url: str + date: str + iso_date: str + author: str