Description
Pattern matching syntax (is/is not) is more expressive and idiomatic. For null checks, it also bypasses overloaded equality operators.Bad Code
Good Code
Properties
- Category: Style
- Severity: Info
- Enabled by default: True
- Code fix available: True
