FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update typing from CPython 3.11.2 by youknowone · Pull Request #4946 · RustPython/RustPython · GitHub

Update typing from CPython 3.11.2 - #4946

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

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

Conversation

youknowone commented Apr 29, 2023
edited
Loading

Copy link
Copy Markdown
Member

#4564

related to TypedDict

cc @lastmjs

lastmjs commented May 4, 2023

Copy link
Copy Markdown

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL