mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-17 00:50:16 +00:00
Remove ReferenceContext::Synthetic
(#4612)
This commit is contained in:
parent
38297c08b4
commit
5cedf0f724
8 changed files with 110 additions and 98 deletions
|
@ -34,10 +34,6 @@ pub enum ReferenceContext {
|
|||
Runtime,
|
||||
/// The reference occurs in a typing-only context.
|
||||
Typing,
|
||||
/// The reference occurs in a synthetic context, used for `__future__` imports, explicit
|
||||
/// re-exports, and other bindings that should be considered used even if they're never
|
||||
/// "referenced".
|
||||
Synthetic,
|
||||
}
|
||||
|
||||
/// Id uniquely identifying a read reference in a program.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue