Skip to content

Create py.typed file in generated code directory #121

@mauruns

Description

@mauruns

Summary

mypy reflection on generated servicer classes

What is the feature request for?

The core library

The Problem

mypy cannot reflect on classes that are not recognized as properly typed. Providing the py.typed file enables mypy to search the Python files and reflect on the used types correctly. betterproto2 itself provides this file, the compiled output does not unfortunately.

The Ideal Solution

Generate an empty py.typed file on compilation

The Current Solution

Users need to create the file themselves after the fact

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions