8000 Ambiguous import paths with mypy 0.780? · Issue #127 · nipunn1313/mypy-protobuf · GitHub
[go: up one dir, main page]

Skip to content
Ambiguous import paths with mypy 0.780? #127
@roitk

Description

@roitk

Hi!

We currently use mypy-protobuf in a typechecking CI step for buildgrid. With the release of mypy 0.780, we began to see the following error in the CI.

buildgrid/_protos/build/bazel/semver/semver_pb2.pyi: error: Source file found twice under different module names: 'buildgrid._protos.build.bazel.semver.semver_pb2' and 'build.bazel.semver.semver_pb2'
Found 1 error in 1 file (checked 144 source files)

We tried regenerating the .pyi files with the newer version of mypy, but the issue persisted, so we've had to roll back our mypy version.

Some additional information:

I'm not sure if this is an issue with mypy, mypy-protobuf, or our configuration, so please let us know if we should post this elsewhere!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0