A runtime type enforcer for dataclasses.
Project description
Runtime Dataclass Enforcer
from rtdce import enforce
from dataclasses import dataclass
from typing import Dict
@dataclass
class Test:
hello: Dict[str, int]
t = Test(hello={'world': 123})
enforce(t)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rtdce-0.0.2.tar.gz
(14.6 kB
view hashes)
Built Distribution
rtdce-0.0.2-py3-none-any.whl
(14.6 kB
view hashes)