Improve internal documentation for the semantic model (#10788)

This commit is contained in:
Alex Waygood 2024-04-06 17:28:32 +01:00 committed by GitHub
parent 7fb5f47efe
commit 1dc93107dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 142 additions and 39 deletions

View file

@ -185,6 +185,7 @@ pub enum ScopeKind<'a> {
Function(&'a ast::StmtFunctionDef),
Generator,
Module,
/// A Python 3.12+ ["annotation scope"](https://docs.python.org/3/reference/executionmodel.html#annotation-scopes)
Type,
Lambda(&'a ast::ExprLambda),
}