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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Is there a way to use Python statically typed or with any type-checking?

3 点作者 gorenb将近 2 年前
I was wondering if python could be used statically typed, or if I could use any type-checking at least. Is there a port of python that's statically typed like TypeScript?

3 条评论

PaulHoule将近 2 年前
<a href="https:&#x2F;&#x2F;cython.org&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;cython.org&#x2F;</a> and <a href="https:&#x2F;&#x2F;mypy-lang.org&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;mypy-lang.org&#x2F;</a>
评论 #37028366 未加载
Bostonian将近 2 年前
LPython <a href="https:&#x2F;&#x2F;lpython.org&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;lpython.org&#x2F;</a> is an alpha-stage &quot;High performance typed Python compiler&quot;.
评论 #37031813 未加载
pid-1将近 2 年前
- For static type checking, I use Pyright. It&#x27;s bundled with VS Code&#x27;s Python extension.<p>- When I need runtime type checking, I use Pydantic.
评论 #37029040 未加载