chore: clean packaging validation and config model

This commit is contained in:
Hadrian Burkhardt
2026-05-01 00:08:43 +00:00
parent bfe72b4f77
commit 7720002d30
3 changed files with 15 additions and 8 deletions
+12 -3
View File
@@ -4,11 +4,20 @@ import configparser
import io
import os
from collections import namedtuple
from dataclasses import dataclass
from functools import partial
Canteen = namedtuple('Canteen',
('key', 'name', 'street', 'city', 'id', 'chash'))
@dataclass(frozen=True)
class Canteen:
"""Configured OpenMensa canteen mapping."""
key: str
name: str
street: str
city: str
id: str
chash: str
def _get_config(filename):