Skip to content

Commit

Permalink
Visit deferred assignments after deferred type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Feb 6, 2023
1 parent 79776c1 commit 26078b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff/src/checkers/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5302,10 +5302,10 @@ pub fn check_ast(
// Check any deferred statements.
checker.check_deferred_functions();
checker.check_deferred_lambdas();
checker.check_deferred_assignments();
checker.check_deferred_type_definitions();
let mut allocator = vec![];
checker.check_deferred_string_type_definitions(&mut allocator);
checker.check_deferred_assignments();
checker.check_deferred_for_loops();

// Check docstrings.
Expand Down

0 comments on commit 26078b1

Please sign in to comment.