Mercurial > code > home > repos > gcalendarwatch
view localtypes.py @ 38:d686e4a5b892
refactor; attempt clearer errors
author | drewp@bigasterisk.com |
---|---|
date | Sun, 12 Nov 2023 23:21:10 -0800 |
parents | e2209226b001 |
children | 7d9609edcf9c |
line wrap: on
line source
import datetime from typing import TypedDict class MongoConf(TypedDict): host: str port: int database: str collection: str class Conf(TypedDict): event_uri_ns: str minutes_between_polls: float mongo: MongoConf class Record(TypedDict): uri: str feed: str title: str start: int startTime: datetime.datetime startDate: int end: int endTime: datetime.datetime endDate: int endTimeUnspecified: bool htmlLink: str creatorEmail: str