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

Move truthy-function docs from “optional checks” to “enabled by default” #14380

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andersk
Copy link
Contributor

@andersk andersk commented Jan 3, 2023

This error was enabled by default since its introduction (#13686); document it in the correct section.

This error was enabled by default since its introduction (python#13686);
document it in the correct section.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
cdce8p
cdce8p approved these changes Jan 3, 2023
Copy link
Contributor

@cdce8p cdce8p left a comment

Thanks @andersk! LGTM

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Thanks for spotting this!

if f: # Error: Function "Callable[[], Any]" could always be true in boolean context [truthy-function]
pass

.. _ignore-without-code:
Copy link
Collaborator

@hauntsaninja hauntsaninja Jan 3, 2023

Choose a reason for hiding this comment

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

I think this anchor should not be moved

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.

None yet

3 participants