Skip to content
Trending storyWatching

Gawain requires full type annotations across Python code

1 report1 sourceupdated 2 days ago

What happened

AI digest

On November 15, Hacker News' front page covered Gawain, a Python type-annotation checker. Gawain requires annotations on variables, function parameters, return values and class attributes, then calls ty or pyrefly to run the type check. The report positions it as a complement to existing annotation linters: ruff ANN and flake8-annotations only check function-related annotations, while Gawain extends the requirement to variables and class attributes. The report gives no version, release date or usage results.

Written by AI from the coverage · updated 2 days ago

Coverage

Follow the reports to see the story from different sides.

Nov 15
  1. Hacker News front page
    Show HN: Gawain – Require type hints on all Python variables

    Gawain 是一款要求 Python 变量、参数、返回值和类属性全部标注类型、再调用 ty 或 pyrefly 做类型检查的工具,可补足 ruff ANN 与 flake8-annotations 只管函数的空白。

Heat over time

Heat now 3·Comparable peak 10(Nov 15 14:00)·Comparable change over 24 hours -49%

02.557.510Nov 1514:00Nov 1604:00Nov 1618:00Nov 1708:00

The trend only compares accounts observed without gaps, so its range may be smaller than the current heat. Hover or tap the chart for each hour; the left and right arrow keys step through it.