Autocompletion when constructing anonymous `TypedDict` in function calls
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 516
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the Bug
I'd like autocompletion when constructing anonymous dictionaries in function calls that expect a `TypedDict` as the argument.
For example:
```
from typing import TypedDict
class Box(TypedDict):
x: float
y: float
z: float
def take(box: Box):
return
take({""})
# ^ When the cursor is in this position, there's no autocompletion of the keys in `Box`
```
Pyright *does* have this behavior. I think it would be very beneficial to add this to `Pyrefly`.
See the Pyright Playground:
https://pyright-play.net/?code=GYJw9gtgBALgngBwJYDsDmUkQWEMoAqiApgCYAiSAxjALABQDDVANgIYDOHUAQmAB4AKIgjKUaASgBcDKHKj8pUYCzBs69eVDhKVajVoBeu1eqaN6pYsFhsA1sUEAjAUr79ps%2BSGIwAriAo5gww9o4A3gBEkQC%2BEkA
### Sandbox Link
https://pyrefly.org/sandbox/?project=N4IgZglgNgpgziAXKOBDAdgEwEYHsAeAdAA4CeS4ATrgLYAEALqcROgOZ0Q3G6UN0AVZjEwARCAGMGAHXSzZEqKjhw6AIQIAKIcRHipASkSy6puvkR0wUXKhnozdUpeu37jgF4ubd%2BXKwwYIyoANYwmngW6gRGJmaUMAwArpT%2Bfgyh4cDSIDkAvgYgADQgZAnWpIQMtFAUAMR0AAqk5VCkdGhYkXQSuOiQbCl2EH2Esg0AyjAwdAAWDAzEcIgA9CtlgW2EvGwrMOgrmLgScCu9-RCDlMN9K1a8dKgAbqjQqNiwPX0DQwwjDrhiH8%2BnAxugyAxZn0ALRPGCUOD-OgAXjoOQAzIQAIwAJhysgA2vDqAiALqyJLoLg8PgiaGYCAJKQQOEougAcku6F4MHZsm5DGhCQAjklGXSwqRoagJBJ4KpUeyAO6oVJ89AgPIlGV-OEAMWgMAonRwBBI5DyQA
### (Only applicable for extension issues) IDE Information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.