Skip to content

reverse overloads with EmptyDict allowed for kwargs should be optional #61

Description

@Viicos

This definition:

@overload
def reverse(
    viewname: Literal["some-view"],
    urlconf: str | None = ...,
    *, args: Literal[None] = ...,
    kwargs: EmptyDict | None,
    current_app: Literal[None] = ...,
) -> str: ...

Will not match reverse("some-view"), although valid at runtime. This is probably also true for any typed dict where all keys aren't required.

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