Skip to content

Ship a PEP 561 py.typed marker #1760

Closed

Description

@rajeeja

Proposed new feature or change:

uxarray ships inline type annotations but no PEP 561 py.typed marker, so mypy and pyright discard all of them and --strict users get an error on import uxarray. Grid.n_face is already declared -> int (uxarray/grid/grid.py:897), but without the marker no checker is permitted to use it, so every annotation written before the marker exists is inert. MANIFEST.in globs only *.py, so the marker needs explicit packaging config to reach the wheel; it is absent from uxarray-2026.9.0-py3-none-any.whl today.

Done when py.typed is in the built wheel and a test guards it. Follow-up: the marker is a promise, and coverage is 213/798 functions with return annotations — 227 public functions have none, including open_grid, open_dataset, and open_mfdataset.

Activity

  1. self-assigned this
    on Sep 15, 2026
  2. added
    new feature
    on Sep 15, 2026
  3. moved this from 📚 Backlog to 📝 To-Do in UXarray Developmenton Sep 21, 2026
  4. moved this from 📝 To-Do to ✅ Done in UXarray Developmenton Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

new feature

Type

No type

Fields

Priority

None yet

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions