Skip to content

Message methods not defined as positional arg only #24446

@aidandj

Description

@aidandj

What version of protobuf and what language are you using?
Version: 33.1
Language: Python

What operating system (Linux, Windows, ...) and version?
OSX

What runtime / compiler are you using (e.g., python version or gcc version)
Python 3.14

What did you do?
Python base message class defined here has certain methods HasField, ClearField etc, defined as functions with keyword arguments. But in reality they are positional args only.

What did you expect to see

Function stubs defined as HasField(self, field_name, /) indicating that they are positional only arguments

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions