Skip to content

[New Rule] Use comparision directly instead of bool(comparison) #88

@martin-thoma

Description

@martin-thoma

Explanation

Comparisons return boolean values. No need to wrap it in a bool-call

Example

# Bad
bool(a == b)

# Good
a == b

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions