Skip to content

Conversation

@tomsun28
Copy link
Member

Description

Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

Fixes #<issue_number_goes_here>

@tomsun28 tomsun28 requested a review from Copilot November 29, 2025 03:51
Copilot finished reviewing on behalf of tomsun28 November 29, 2025 03:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds PEP 561 compliance to the zai-sdk package by introducing a py.typed marker file, enabling type checkers like mypy to recognize and use the package's inline type hints.

  • Added an empty py.typed marker file in the package directory
  • Updated pyproject.toml to include the py.typed file in distribution

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/zai/py.typed Empty marker file signaling PEP 561 compliance for type checkers
pyproject.toml Added include directive to ensure py.typed is packaged in distributions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

authors = ["Z.ai"]
readme = "README.md"
packages = [{include = "zai", from = "src"}]
include = ["src/zai/py.typed"]
Copy link

Copilot AI Nov 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The include path is incorrect for Poetry's package configuration. Since packages = [{include = \"zai\", from = \"src\"}] is specified, the include path should be relative to the project root without the 'src/' prefix. Change to include = [\"zai/py.typed\"] or use the full path pattern \"src/zai/py.typed\" only if it's meant to be included from the project root (which would be redundant given the packages config). The correct approach is include = [\"zai/py.typed\"].

Suggested change
include = ["src/zai/py.typed"]
include = ["zai/py.typed"]

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat]: Add PEP 561 Compliant Type Stubs (.pyi files) for Static Type Checking Please

2 participants