Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.1k
More precise return types forTypedDict.get#19897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
27e50e2e70881363224f2808f593de8effe4ebe192a9d238816c97ba628a0be443f6c76bf9401cbbbd4d63f4975f3e8556a0fbceeFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1409,12 +1409,12 @@ def analyze_typeddict_access( | ||
| str_type = mx.chk.named_type("builtins.str") | ||
| fn_type = mx.chk.named_type("builtins.function") | ||
| object_type = mx.chk.named_type("builtins.object") | ||
| type_info = typ.fallback.type | ||
| # type variable for default value | ||
| tvar = TypeVarType( | ||
| ||
| "T", | ||
| f"{type_info.fullname}.get.T", | ||
| id=TypeVarId(-1, namespace=f"{type_info.fullname}.get"), | ||
| values=[], | ||
| upper_bound=object_type, | ||
| default=AnyType(TypeOfAny.from_omitted_generics), | ||