Skip to content

GH-49102: [CI] Add type checking infrastructure and CI workflow for type annotations - #48618

Merged
rok merged 31 commits into
apache:mainfrom
rok:pyarrow-stubs-pr1-infrastructure
Feb 9, 2026
Merged

GH-49102: [CI] Add type checking infrastructure and CI workflow for type annotations#48618
rok merged 31 commits into
apache:mainfrom
rok:pyarrow-stubs-pr1-infrastructure

Conversation

@rok

@rok rok commented Dec 22, 2025

Copy link
Copy Markdown
Member

Rationale for this change

This is the first in series of PRs adding type annotations to pyarrow and resolving #32609.

What changes are included in this PR?

This PR establishes infrastructure for type checking:

  • Adds CI workflow for running mypy, pyright, and ty type checkers on linux, macos and windows
  • Configures type checkers to validate stub files (excluding source files for now)
  • Adds PEP 561 py.typed marker to enable type checking
  • Updates wheel build scripts to include stub files in distributions
  • Creates initial minimal stub directory structure
  • Updates developer documentation with type checking workflow

Are these changes tested?

No. This is mostly a CI change.

Are there any user-facing changes?

This does not add any actual annotations (only py.typed marker) so user should not be affected.