Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--unasync option to find non-async functions/methods #37

Closed
simonw opened this issue Jul 16, 2023 · 1 comment
Closed

--unasync option to find non-async functions/methods #37

simonw opened this issue Jul 16, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Jul 16, 2023

I realize that you can use --function to find all async-and-not-async functions, and --async to find all async functions... but there's no way to find just not-async functions.

@simonw simonw added the enhancement New feature or request label Jul 16, 2023
@simonw
Copy link
Owner Author

simonw commented Jul 16, 2023

Given this list of existing options:

  --async                    Filter async functions
  --function                 Filter functions
  --class                    Filter classes
  --documented               Filter functions with docstrings
  --undocumented             Filter functions without docstrings
  --typed                    Filter functions with type annotations
  --untyped                  Filter functions without type annotations

I think --unasync is the right name, for consistency with --undocumented and --untyped.

@simonw simonw changed the title Option to find non-async functions --unasync option to find non-async functions/methods Jul 16, 2023
@simonw simonw closed this as completed in d883e53 Jul 16, 2023
simonw added a commit that referenced this issue Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant