Skip to content

Update typing from CPython 3.11.2#4946

Closed
youknowone wants to merge 1 commit intoRustPython:mainfrom
youknowone:update-typing
Closed

Update typing from CPython 3.11.2#4946
youknowone wants to merge 1 commit intoRustPython:mainfrom
youknowone:update-typing

Conversation

@youknowone
Copy link
Member

@youknowone youknowone commented Apr 29, 2023

#4564

related to TypedDict

cc @lastmjs

@lastmjs
Copy link

lastmjs commented May 4, 2023

Our goal is to be able to use generics with TypedDicts, like this:

class Result(TypedDict, Generic[T, K], total=False):
    Ok: T
    Err: K

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants