bp/resqpy

Progressively enable meaningful type checking by setting check_untyped_defs = true

開放

#910 建立於 2026年6月15日

 (0 則留言) (0 個反應) (1 位負責人)Python (18 個分叉)auto 404
good first issue

倉庫指標

星標
 (66 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Although mypy runs on the whole code base, most of the library code is not meaningfully checked, as in the current configuration untyped functions are ignored.

A first step could be to include in the env type stubs for 3rd party libs like pandas, lxml, scipy, for more accurate checks.

Over time we could opt-in certain modules to more meaningful type checking with e.g.:

# pyproject.toml
[[tool.mypy.overrides]]
module = [
    "resqpy.crs",
    "resqpy.time_series._any_time_series",
    # add here as each is cleaned
]
check_untyped_defs = true

貢獻者指南