Update F841 autofix to not remove line magic expr (#6141)

## Summary

Update `F841` autofix to not remove line magic expr

## Test Plan

Added test case for assignment statement with and without type
annotation

fixes: #6116
This commit is contained in:
Dhruv Manilawala
2023-08-05 06:15:01 +05:30
committed by GitHub
parent 32fa05765a
commit 1ac2699b5e
5 changed files with 183 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ where
| Expr::Subscript(_)
| Expr::Yield(_)
| Expr::YieldFrom(_)
| Expr::LineMagic(_)
)
})
}