TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Python class typing that raises TypeError at runtime

2 点作者 6r17将近 2 年前
Hi HN !<p>I was getting a bit sick of how I was managing structures in Python, I needed something that would trivially be translated to json, had some kind of verification, and had the ability to output a json-schema to communicate the format.<p>I plan to add more documentation and customization to the package in regards of schema generation and custom validation.<p>For python 3.9 +<p>I hope this will be useful ! :)

1 comment

hsfzxjy将近 2 年前
What&#x27;s the merit compared with pydantic or beartype?