Upgrading flake8-bugbear 20 to 21
Review needed20.11.1 → 21.11.29New4Changed4Fixed8Other4
Review neededUpgrade verdict
4 behavior changes.
In plain terms
- The linter no longer flags string expressions under the B018 check, at least for now.
- The B014 check now recognizes binascii.Error as a kind of ValueError.
- The B006 check now also flags list, dictionary, and set comprehensions used as default arguments, not just literal mutable defaults.
- The B008 check now allows more function calls that are known to be safe to use as default arguments.
Must act Nothing to change
No breaking, platform, security or deprecated items in this range.
Nothing in this upgrade needs a code or configuration change.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- removed:
method BugBearVisitor.visit_Attribute(node) - removed:
variable B301 - removed:
variable B302 - removed:
variable B303 - removed:
variable B304 - removed:
variable B305 - removed:
variable B306 - added:
field BugBearVisitor.b008_extend_immutable_calls - added:
field BugBearVisitor.contexts - added:
method BugBearVisitor.check_for_b017(node) - added:
method BugBearVisitor.check_for_b018(node) - added:
method BugBearVisitor.check_for_b904(node) - added:
method BugBearVisitor.visit_With(node) - added:
property BugBearVisitor.node_stack - added:
variable B017 - added:
variable B018 - added:
variable B904 - added:
variable CONTEXTFUL_NODES - added:
variable Context