black icon indicating copy to clipboard operation
black copied to clipboard

Remove is_function_or_class helper footgun

Open hauntsaninja opened this issue 1 year ago • 1 comments

This is a no-op change.

That function was not a good way to tell if something is a function or a class, since it basically only worked for async functions by accident (the parent of a suite / simple_stmt of async function body is a funcdef). Also not all async functions even have an async_funcdef

hauntsaninja avatar Dec 29 '23 00:12 hauntsaninja

diff-shades reports zero changes comparing this PR (df1257fd5c0feb2f5ff382f0230ebc40e0d2d76f) to main (db9c592967b976a16eccd500f3e2676cfff7f29d).


What is this? | Workflow run | diff-shades documentation

github-actions[bot] avatar Dec 29 '23 00:12 github-actions[bot]

Thanks for all the improvements!

JelleZijlstra avatar Jan 02 '24 01:01 JelleZijlstra