Skip to content

SIM212, SIM220-SIM223: Ternary operator negation #6

@MartinThoma

Description

@MartinThoma

Explanation

Removing a negation makes things simpler to understand

Example

# Bad
b if not a else a

# Good
a if a else 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