Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
quotemstr
18 days ago
|
parent
|
context
|
favorite
| on:
Advanced Python Features
It still has a special case for dataclass-like things. I don't see how Python type checking (I haven't tried Red Knot) could let you do semi-magical things like Zod schema validation from TypeScript.
davidatbu
17 days ago
[–]
100%. Python typing is nowhere near as powerful as TS, and the example you gave demonstrates that.
I mentioned pyright because (some of) the specific concerns by OP are addressed by it.
Consider applying for YC's Summer 2025 batch! Applications are open till May 13
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: