native-literals (UP018)#
Derived from the pyupgrade linter.
Fix is always available.
What it does#
Checks for unnecessary calls to str, bytes, int, float, and bool.
Why is this bad?#
The mentioned constructors can be replaced with their respective literal forms, which are more readable and idiomatic.
Example#
Use instead: