Skip to content

Add py.typed type marker - #1279

Merged
bact merged 4 commits into
PyThaiNLP:devfrom
bact:add-type-marker
Feb 4, 2026
Merged

Add py.typed type marker#1279
bact merged 4 commits into
PyThaiNLP:devfrom
bact:add-type-marker

Conversation

@bact

@bact bact commented Feb 4, 2026

Copy link
Copy Markdown
Member

To signal the support of type information, that this package is fully typed and type checkers can rely on type information provided from this package.

As described in https://typing.python.org/en/latest/spec/distributing.html#packaging-type-information

To signal PEP 561 support
@bact bact added this to the 5.3 milestone Feb 4, 2026
@bact bact added the enhancement enhance functionalities label Feb 4, 2026
@bact bact added this to PyThaiNLP Feb 4, 2026
@bact bact changed the title Add type marker Add py.typed type marker Feb 4, 2026
@bact
bact requested a review from Copilot February 4, 2026 18:00
@bact bact moved this to In progress in PyThaiNLP Feb 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 the py.typed marker file so type checkers recognize that pythainlp ships and supports inline type information, aligning with the Python typing distribution guidelines.

Changes:

  • Introduced pythainlp/py.typed to declare the package as typed for static type checkers.
  • Added brief comments in the marker file explaining its purpose.

Comment thread pythainlp/py.typed Outdated
bact and others added 3 commits February 4, 2026 18:09
@bact bact added the documentation improve documentation and test cases label Feb 4, 2026
@sonarqubecloud

sonarqubecloud Bot commented Feb 4, 2026

Copy link
Copy Markdown

@bact
bact merged commit 8a188f2 into PyThaiNLP:dev Feb 4, 2026
23 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in PyThaiNLP Feb 4, 2026
@bact
bact deleted the add-type-marker branch February 4, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation improve documentation and test cases enhancement enhance functionalities

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants