Skip to content

An enhancement for type hinting #125602

@Unknownuserfrommars

Description

@Unknownuserfrommars

Feature or enhancement

Proposal:

So type hinting is GREAT. Don't get me wrong, but that is ACTUALLY THE BEST THING PYTHON EVER HAD AND NO KIDDING.
But then, type hints can't deal with cases like this:

def bundle(what_ever_kwargs) -> list[dict*8]:
pass

So this is not supported. But to be PRECISE, we want to state that this function EXACTLY RETURNS 8 dictionaries.
So can we add support for this kind of type hinting (in 3.14 maybe?)

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions