Skip to content

stubtest: ignore name mismatches for positional only arguments #13113

Closed as not planned
@srittau

Description

@srittau

Currently, stubtest emits errors like this when the runtime name of a positional only name differs from the stub name:

error: sqlite3.dbapi2.register_converter is inconsistent, stub argument "__typename" differs from runtime argument "name"

In this particular case, the name of the argument changed between Python 3.10 and 3.11, requiring use to use a version check in the stubs.

I believe that name errors in positional only arguments should be ignored, as they have no runtime effect.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions