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

Add comment explaining why `typing_extensions.TypedDict` is kept distinct by AlexWaygood · Pull Request #15949 · python/typeshed · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .pyi  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
3 changes: 3 additions & 0 deletions stdlib/typing_extensions.pyi
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
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ Literal: _SpecialForm

def IntVar(name: str) -> Any: ... # returns a new TypeVar

# Kept as a distinct symbol to `typing.TypedDict` so that type checkers can more easily
# distinguish between the two on Python 3.14, on which `typing_extensions.TypedDict`
# exposes `__closed__` and `__extra_items__` but `typing.TypedDict` does not
TypedDict: _SpecialForm

# Internal mypy fallback type for all typed dicts (does not exist at runtime)
Expand Down
Loading

Back | FazBrowse Home | New Git URL