Skip to content

Conversation

hauntsaninja
Copy link
Collaborator

@hauntsaninja hauntsaninja commented Dec 28, 2023

Relates to #4043

def is_funcdef(node: Node) -> bool:
return node.type == syms.funcdef


def is_function_or_class(node: Node) -> bool:
Copy link
Collaborator Author

@hauntsaninja hauntsaninja Dec 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is suspicious since many async defs don't have async_funcdef, but this can be subject for different PR

edit: #4133

Copy link

github-actions bot commented Dec 29, 2023

diff-shades reports zero changes comparing this PR (5b84510) to main (fe33761).


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

@JelleZijlstra JelleZijlstra merged commit 8e0a9de into psf:main Jan 2, 2024
@hauntsaninja hauntsaninja deleted the async-new-line branch January 2, 2024 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants