Skip to content

feature: Add type stubs or py.typed marker for Pylance support #5854

@nimaxin

Description

@nimaxin

Duplicate Check

Describe the requested feature

I’m using Flet in a Python project with VS Code and Pylance in strict type checking mode, and I’m seeing the following warning:

Stub file not found for "flet" Pylance(reportMissingTypeStubs)

It looks like the package doesn’t include a py.typed marker or type stubs, which prevents Pylance from performing type checking.

According to PEP 561, a package can signal that it includes type information by adding a py.typed file. This allows type checkers like Pylance or mypy to understand that the package provides type hints.

Suggest a solution

Add a py.typed marker file to the package.

Screenshots

No response

Additional details

Thanks for your work on Flet!

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestSuggestion/Request for additional feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions