mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 12:55:05 +00:00
[ty] Fix false-positive [invalid-return-type]
diagnostics on generator functions (#17871)
This commit is contained in:
parent
47e3aa40b3
commit
bb6c7cad07
8 changed files with 253 additions and 22 deletions
|
@ -194,6 +194,9 @@ pub(crate) struct SemanticIndex<'db> {
|
|||
|
||||
/// List of all semantic syntax errors in this file.
|
||||
semantic_syntax_errors: Vec<SemanticSyntaxError>,
|
||||
|
||||
/// Set of all generator functions in this file.
|
||||
generator_functions: FxHashSet<FileScopeId>,
|
||||
}
|
||||
|
||||
impl<'db> SemanticIndex<'db> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue