diff options
author | Zen Lee <53538590+zenlyj@users.noreply.github.com> | 2023-04-16 02:01:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-15 20:01:37 +0200 |
commit | 6028f202c4b637f9edc54cef815586a54fd65958 (patch) | |
tree | 054b07291b3edb59a244956dc28c14e687642544 /tests/functional/u/used/used_before_assignment_scoping.txt | |
parent | 2db55f6a48962aa7ff4cc3b0ee4b37177f605bdc (diff) | |
download | pylint-git-6028f202c4b637f9edc54cef815586a54fd65958.tar.gz |
Fix `used-before-assignment` TYPE_CHECKING false negatives (#8431)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Diffstat (limited to 'tests/functional/u/used/used_before_assignment_scoping.txt')
-rw-r--r-- | tests/functional/u/used/used_before_assignment_scoping.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/functional/u/used/used_before_assignment_scoping.txt b/tests/functional/u/used/used_before_assignment_scoping.txt new file mode 100644 index 000000000..32b6d3e1b --- /dev/null +++ b/tests/functional/u/used/used_before_assignment_scoping.txt @@ -0,0 +1,2 @@ +used-before-assignment:10:13:10:21:func_two:Using variable 'datetime' before assignment:CONTROL_FLOW +used-before-assignment:16:12:16:20:func:Using variable 'datetime' before assignment:CONTROL_FLOW |