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

assert is not a function in Python #320

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Feb 13, 2024

Creating function style assert() makes it quite easy to create assert statements that are always True as discussed in

Also,

  • Removed unused imports
  • Multiple statements on one line (semicolon)
  • Comparison to True should be cond is True or if cond:
  • Local variable is assigned to but never used

@jswhit jswhit merged commit 526c778 into Unidata:master Feb 16, 2024
27 checks passed
@cclauss cclauss deleted the assert-is-not-a-function-in-Python branch February 16, 2024 15:58
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