[ty] Add a note to the diagnostic if a new builtin is used on an old Python version (#18068)
## Summary If the user tries to use a new builtin on an old Python version, tell them what Python version the builtin was added on, what our inferred Python version is for their project, and what configuration settings they can tweak to fix the error. ## Test Plan Snapshots and screenshots: 
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# Diagnostics for unresolved references
|
||||
|
||||
## New builtin used on old Python version
|
||||
|
||||
<!-- snapshot-diagnostics -->
|
||||
|
||||
```toml
|
||||
[environment]
|
||||
python-version = "3.9"
|
||||
```
|
||||
|
||||
```py
|
||||
aiter # error: [unresolved-reference]
|
||||
```
|
||||
Reference in New Issue
Block a user