Skip to content

B015: prepend "assert" and fix verb tense - #150

Merged
cooperlees merged 1 commit into
PyCQA:masterfrom
stevepiercy:b015-prepend-assert
Nov 29, 2020
Merged

cooperlees merged 1 commit into
PyCQA:masterfrom
stevepiercy:b015-prepend-assert

Conversation

@stevepiercy

Copy link
Copy Markdown
Contributor

@cooperlees cooperlees left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sure, might click some people's brains to understand the lint better. So thanks.

Comment thread README.rst

**B015**: Pointless comparison. This comparison does nothing but
wastes CPU instructions. Remove it.
waste CPU instructions. Either prepend ``assert`` or remove it.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

FWIW, assert could possibly not always technically be the right thing too ...

@cooperlees
cooperlees merged commit 836139b into PyCQA:master Nov 29, 2020
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