py.typed file / type stubs are missing

Open Beginner friendly
#876 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
api

Research direction

Start by locating the installed polygon package and reproduce the report with examples/stocks-daily_open_close.py using mypy. Check that the package exports its type information as described in the issue, then verify that the example passes type checking without the missing-stubs error.

Written by the indexing model from the issue text.

Description

bug

Describe the bug
The polygon package does not export its type information to mypy, which causes mypy to fail when used on downstream packages

To Reproduce

  1. Download examples/stocks-daily_open_close.py or any other example file
  2. mypy stocks-daily_open_close.py
  3. Observe the following error:
stocks-daily_open_close.py:1: error: Skipping analyzing "polygon": module is installed, but missing library stubs or py.typed marker  [import-untyped]
stocks-daily_open_close.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)

Expected behavior
The type checks should pass

Additional context
I think all that is needed is to add the missing py.typed file to the polygon package

Dominant language
Python
Stars
1.5k
Forks
362
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from massive-com/client-python

All issues in massive-com/client-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.