Skip to content

feat: add py.typed marker for PEP 561 compliance#2267

Open
kalichiruvelli-art wants to merge 1 commit into
sktime:mainfrom
kalichiruvelli-art:feat/add-py-typed-marker
Open

feat: add py.typed marker for PEP 561 compliance#2267
kalichiruvelli-art wants to merge 1 commit into
sktime:mainfrom
kalichiruvelli-art:feat/add-py-typed-marker

Conversation

@kalichiruvelli-art
Copy link
Copy Markdown

Summary

Adds an empty py.typed marker file to the pytorch_forecasting/ package directory as specified by PEP 561.

Problem

Type checkers (Pyright, Pylance, mypy) treat pytorch-forecasting as untyped because there is no py.typed marker, causing warnings like:
Stub file not found for "pytorch_forecasting" (reportMissingTypeStubs)

Fix

  • Add an empty pytorch_forecasting/py.typed marker file (zero bytes, no logic changes)
    • Add [tool.setuptools.package-data] entry in pyproject.toml so the file is included in the built distribution
      No logic changes, no new dependencies.

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.

1 participant