summaryrefslogtreecommitdiff
path: root/tests/functional/u/undefined/undefined_variable_py38.py
Commit message (Collapse)AuthorAgeFilesLines
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-3/+3
|
* Fix FP for used-before-assignment with assignment expressions in containers ↵Jacob Walls2023-02-111-3/+7
| | | | (#8253)
* Fix `used-before-assignment` false positive for TYPE_CHECKING if/elif/else ↵Zen Lee2023-02-071-0/+20
| | | | usage (#8071)
* Fix unreleased false positives with `used-before-assignment` (#7921)Jacob Walls2022-12-121-0/+4
| | | | | Cases with NamedExpr and Starred relating to definitions under "always false" conditions added in https://github.com/PyCQA/pylint/pull/6677
* Prevent `used-before-assignment` for variables defined in assignment ↵Jacob Walls2022-11-251-3/+4
| | | | expressions (#7847)
* Emit `used-before-assignment` for variables only defined under always false ↵Jacob Walls2022-11-221-0/+5
| | | | tests (#6677)
* Move `consider-using-augmented-assign` to `CodeStyle` extension (#7628)Marc Mueller2022-10-161-1/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add ``consider-using-augmented-assign`` checker (#7514)Daniël van Noord2022-09-221-1/+1
| | | | Co-authored-by: clavedeluna <danalitovsky+git@gmail.com> Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
* Emit `used-before-assignment` for self-referencing assignments under if ↵Jacob Walls2022-06-151-0/+5
| | | | conditions (#6958)
* Warn about self-referencing named expressions lacking prior assignments (#6915)Jacob Walls2022-06-121-1/+7
|
* Fix handling of "for x in x" homonyms (#6154)Jacob Walls2022-04-031-1/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix #5112: Prevent `used-before-assignment` if named expression found first ↵Jacob Walls2022-02-171-0/+14
| | | | | in container (#5812) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix false positive `used-before-assignment` for named expressions in ternary ↵Jacob Walls2022-02-021-0/+16
| | | | operators (#5748)
* Remove moot TODO (#5747)Jacob Walls2022-01-301-2/+1
| | | Changing the message type occurred in 0fb6a120c6f0fbc94e305542fe29e790274be096 and updating this unit test to match took place in fa2b6ceca796311a918e28770d101b53a43f84f3.
* Fix test conflicts after merging two valid MR incompatible together (#5726)Jacob Walls2022-01-261-2/+2
| | | After f85fb8d975d17f411e5f91ed2d5f21ba999e121e, certain unused type annotations raise `used-before-assignment` rather than `undefined-variable`. The subsequent commit `0fb6a120c6f0fbc94e305542fe29e790274be096` was drafted before the prior change was made, and it addressed a related false negative, so this commit just applies the intended change of message type.
* Fix false negative for `undefined-variable` (#5711)Jacob Walls2022-01-261-1/+16
| | | | | | | For unused type annotation after the same name appears multiple times in a comprehension Fix #5654 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix false positive for `unused-variable` for a comprehension variable ↵Jacob Walls2022-01-101-2/+19
| | | | | | | matching a type annotation (#5651) * Close #5326
* Fix ``used-before-assignment`` for assignment expressions in lambda (#5530)Daniël van Noord2021-12-211-0/+11
|
* Add control flow check for ``undefined-variable`` in ``if ... else``Daniël van Noord2021-10-261-1/+50
| | | | Closes #3688
* Add tests for assignment expressions in function defaults (#5188)Daniël van Noord2021-10-251-0/+33
| | | | | | | | | * Add tests for assignment expressions in function defaults Ref #3688 * Upgrade astroid to 2.8.4 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix regression for ``_is_only_type_assignment`` (#5163)Daniël van Noord2021-10-231-0/+17
* Fix regression for ``_is_only_type_assignment`` This closes #5162 * Remove references to `name` * Better tests for assignment * Move walrus tests to different file * Fix tests with incorrect typing * Update typing of `defstmt` Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>