mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 22:01:47 +00:00
[red-knot] treat annotated assignments without RHS in stubs as bindings (#16409)
This commit is contained in:
parent
5ca6cc2cc8
commit
fdf0915283
7 changed files with 80 additions and 17 deletions
|
@ -353,7 +353,7 @@ impl<'db> SemanticIndexBuilder<'db> {
|
|||
#[allow(unsafe_code)]
|
||||
// SAFETY: `definition_node` is guaranteed to be a child of `self.module`
|
||||
let kind = unsafe { definition_node.into_owned(self.module.clone()) };
|
||||
let category = kind.category();
|
||||
let category = kind.category(self.file.is_stub(self.db.upcast()));
|
||||
let is_reexported = kind.is_reexported();
|
||||
let definition = Definition::new(
|
||||
self.db,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue