summaryrefslogtreecommitdiff
path: root/pyflakes/test/test_code_segment.py
Commit message (Collapse)AuthorAgeFilesLines
* burn the bridges with python 2.x (#707)Anthony Sottile2022-06-121-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * pyupgrade --py36-plus * remove handling of PY2 * remove handling of PY35_PLUS * remove handling of PY36_PLUS * remove obsolete version_info checks in pyflakes/ * adjust skips in tests for 3.6+ * is_py3_func -> has_annotations (specifically for lambda) * remove references to py 2 * remove references to unichr * clean up version-specific getattrs * remove unused ReturnWithArgsInsideGenerator * remove unused ast handlers * remove unused RedefinedInListComp
* Fix bug in async function scope checking (#511)Peter Law2020-03-131-1/+7
| | | | | | | | | | | | | | * Fix bug in async function scope checking Previously attempting to check an async function scoped tree would immediately error because tuples are not callable. The test added here is a direct copy of 'test_scope_function' as I'm not sure what (if anything) should specifically be tested for async functions, though it serves to prove the fix. * Skip async function test where it doesn't apply * Clarify that this is a smoke test for async function segments
* Handle subtrees as input to checkerMacBox72018-07-191-0/+126
This patch essentially adds the the functionality for the Checker to handle subtrees. Along with this args have also been parsed through handlers. Closes https://github.com/PyCQA/pyflakes/issues/338