AnswerDotAI / AnswerDotAI/fasthtml

[FEATURE] Please add py.typed for mypy

Open Beginner friendly
#907 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Jupyter Notebook
Stars
7k
Forks
319
Avg merge
28m
Merged PRs (30d)
3

Description

To use mypy in strict mode you need to make sure that 3rd party libraries are marked as typed. to do this it's just a matter to add an empty `py.typed` file in the root package

**Is your feature request related to a problem? Please describe.**
I want to be able to run `mypy` and not having
`error: Skipping analyzing "fasthtml.common": module is installed, but missing library stubs or py.typed marker [import-untyped]`

**Describe the solution you'd like**
just add a `py.typed` file in the package

Contributor guide

Open the contributing guide

Research direction

Locate the package root containing fasthtml.common and inspect the packaging metadata to see which files are included. Add the empty py.typed marker there, then run mypy in strict mode against an installed build to confirm the import-untyped error is gone.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
developer-experience
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.