Astral 发布 ty 1.0 类型检查器提速 24 倍

原标题:ty 1.0
62AI 研判分

Astral 的 Python 类型检查器 ty 正式发布 1.0 版本,官方推荐用于生产环境。OpenAI 已将其作为默认类型检查器,覆盖数百万行关键 Python 代码,内部迁移后中位速度提升 24 倍、峰值内存下降 73%。ty 还内置 Django 支持,需配合 django-types 包使用。

关联知识实体

报道正文

ty 1.0 (via) Astral's fast type checker for Python has hit 1.0, and they now "recommend it for production use".

ty is now the default and most widely-deployed type checker at OpenAI, providing coverage for many millions of lines of critical Python. Internally, migrating to ty resulted in a median 24x speedup and 73% reduction in peak memory usage.

It has built-in support for Django provided the django-types package is also installed.