Add in_boolean_test to Context (#4072)

This commit is contained in:
Jonathan Plasse 2023-04-24 07:18:23 +02:00 committed by GitHub
parent df77595426
commit 5e91211e6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 2 deletions

View file

@ -48,6 +48,7 @@ pub struct Context<'a> {
pub in_deferred_type_definition: bool,
pub in_exception_handler: bool,
pub in_f_string: bool,
pub in_boolean_test: bool,
pub in_literal: bool,
pub in_subscript: bool,
pub in_type_checking_block: bool,
@ -88,6 +89,7 @@ impl<'a> Context<'a> {
in_deferred_type_definition: false,
in_exception_handler: false,
in_f_string: false,
in_boolean_test: false,
in_literal: false,
in_subscript: false,
in_type_checking_block: false,