Skip to content

Protobuf FromString argument 1 incompatible with supertype Message #5333

Closed

Description

@kailin-lu

When using types-protobuf 0.1.9 FromString gives error error: Argument 1 of "FromString" is incompatible with supertype "Message"; supertype defines the argument type as "ByteString"

It looks like this error message was fixed in mypy-protobuf 1.23 https://github.com/dropbox/mypy-protobuf/blob/master/CHANGELOG.md

Activity

  1. Avasam commented on Nov 28, 2023

    @Avasam
    SponsorCollaborator

    Is this issue still relevant? types-protobuf is now generated against 4.21.8 using mypy-protobuf==3.5.0, and as OP mentioned, this issue seems to have been fixed upstream in 1.23.

  2. Avasam commented on Dec 1, 2023

    @Avasam
    SponsorCollaborator

    I'll close this as solved by #5753 or a previous commit.
    Feel free to open a new issue if you still have issues with subclassing of google.protobuf.message.Message.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions