Skip to content

cel.pyi imports google.protobuf, which is not a declared dependency #142

Open

Description

@andrefranken

Version: cel-expr-python 0.1.4 (wheel from PyPI).

What happens

cel.pyi imports google.protobuf, but protobuf is not listed in the package's requirements. Type checking does not fail outright, but when protobuf is not installed the descriptor_pool parameter ends up untyped.

Expected

The stub type-checks completely with only the package's declared dependencies installed.

Request

Either declare the dependency (possibly as an optional extra used only for typing), or guard the import in the stub so it does not depend on an undeclared package.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions