8000 Incorrect annotation for Match.__getitem__ · Issue #5546 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content
Incorrect annotation for Match.__getitem__ #5546
Closed
@jwodder

Description

@jwodder

The annotation for typing.Match.__getitem__ states that it returns an AnyStr. However, it can also return None when the specified group was not captured.

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