Skip to content

Upgrading flake8-bugbear 21 to 22

Review needed21.11.29 → 22.12.6New10Changed5Fixed14Other6

Review neededUpgrade verdict

5 changed defaults.

  • Nothing in this range needs changes to your code. It adds features and fixes.
Nothing to change

No breaking, platform, security or deprecated items in this range.

Python requirement changed in 22.10.25: >=3.6 → >=3.7.

Nothing in this upgrade needs a code or configuration change.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • removed: method BugBearVisitor.check_for_b006(node)
  • removed: method BugBearVisitor.compose_call_path(node)
  • added: class B020NameFinder(NameFinder)
  • added: class FuntionDefDefaultsVisitor(ast.NodeVisitor)
  • added: constructor FuntionDefDefaultsVisitor(b008_extend_immutable_calls=…)
  • added: function children_in_scope(node)
  • added: function compose_call_path(node)
  • added: function names_from_assignments(assign_target)
  • added: method B020NameFinder.visit_DictComp(node)
  • added: method B020NameFinder.visit_GeneratorExp(node)
  • added: method B020NameFinder.visit_Lambda(node)
  • added: method B020NameFinder.visit_ListComp(node)
  • added: method B020NameFinder.visit_comprehension(node)
  • added: method BugBearVisitor.check_for_b006_and_b008(node)
  • added: method BugBearVisitor.check_for_b019(node)
  • added: method BugBearVisitor.check_for_b020(node)
  • added: method BugBearVisitor.check_for_b021(node)
  • added: method BugBearVisitor.check_for_b022(node)
  • added: method BugBearVisitor.check_for_b023(loop_node)
  • added: method BugBearVisitor.check_for_b024_and_b027(node: ast.ClassDef)
  • added: method BugBearVisitor.check_for_b025(node)
  • added: method BugBearVisitor.check_for_b026(call: ast.Call)
  • added: method BugBearVisitor.check_for_b905(node)
  • added: method BugBearVisitor.visit_AsyncFor(node)
  • added: method BugBearVisitor.visit_DictComp(node)
  • added: method BugBearVisitor.visit_GeneratorExp(node)
  • added: method BugBearVisitor.visit_ListComp(node)
  • added: method BugBearVisitor.visit_SetComp(node)
  • added: method BugBearVisitor.visit_While(node)
  • added: method FuntionDefDefaultsVisitor.visit(node)
  • added: method FuntionDefDefaultsVisitor.visit_Call(node)
  • added: method FuntionDefDefaultsVisitor.visit_Lambda(node)
  • added: method FuntionDefDefaultsVisitor.visit_mutable_literal_or_comprehension(node)
  • added: variable B019
  • added: variable B020
  • added: variable B021
  • added: variable B022
  • added: variable B023
  • added: variable B024
  • added: variable B025
  • added: variable B026
  • added: variable B027
  • added: variable B905
  • added: variable FUNCTION_NODES