mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 16:27:08 +08:00
Annotate TypedDict as _SpecialForm rather than object. (#12985)
* Annotate TypedDict as _SpecialForm rather than object. Let's see if this works... * Get typing_extensions.TypedDict as well, try to fix tests. * Import typing_extensions.TypedDict, delete _SpecialForm.__getitem__. * Back out deletion of _SpecialForm.__getitem__.
This commit is contained in:
@@ -213,8 +213,7 @@ Tuple: _SpecialForm
|
||||
Final: _SpecialForm
|
||||
|
||||
Literal: _SpecialForm
|
||||
# TypedDict is a (non-subscriptable) special form.
|
||||
TypedDict: object
|
||||
TypedDict: _SpecialForm
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
Self: _SpecialForm
|
||||
|
||||
Reference in New Issue
Block a user