Skip to content

Incorrect annotation for Match.__getitem__ #5546

Closed

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.

Activity

  1. srittau commented on May 28, 2021

    @srittau
    Collaborator

    Basically a duplicate of #3902.

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