Skip to content

Upgrading flake8-bugbear 22 to 23

Breaking22.12.6 → 23.12.2Platform1New10Changed7Fixed15Other4

BreakingUpgrade verdict

A platform requirement change.

  • The package now officially supports Python 3.12.
1 item needs code or config changes

Python requirement changed in 23.3.23: >=3.7 → >=3.8.1.

Platform1
Declares support for Python 3.12.

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

  • removed: field BugBearVisitor.node_stack
  • changed: field NameFinder.names → field NameFinder.names: Dict[str, List[ast.Name]]
  • changed: method BugBearVisitor.check_for_b902(node) → method BugBearVisitor.check_for_b902(node: Union[ast.FunctionDef, ast.AsyncFunctionDef]) -> None
  • changed: method NameFinder.visit_Name(node) → method NameFinder.visit_Name(node: ast.Name)
  • added: class NamedExprFinder(ast.NodeVisitor)
  • added: field BugBearVisitor.b902_classmethod_decorators
  • added: field NamedExprFinder.names: Dict[str, List[ast.Name]]
  • added: function walk_list(nodes)
  • added: method BugBearVisitor.check_for_b028(node)
  • added: method BugBearVisitor.check_for_b031(loop_node)
  • added: method BugBearVisitor.check_for_b032(node)
  • added: method BugBearVisitor.check_for_b033(node)
  • added: method BugBearVisitor.check_for_b034(node: ast.Call)
  • added: method BugBearVisitor.check_for_b035(node: ast.DictComp)
  • added: method BugBearVisitor.check_for_b906(node: ast.FunctionDef)
  • added: method BugBearVisitor.check_for_b907(node: ast.JoinedStr)
  • added: method BugBearVisitor.check_for_b908(node: ast.With)
  • added: method BugBearVisitor.visit_AnnAssign(node)
  • added: method BugBearVisitor.visit_Import(node)
  • added: method BugBearVisitor.visit_ImportFrom(node)
  • added: method BugBearVisitor.visit_JoinedStr(node)
  • added: method BugBearVisitor.visit_Module(node)
  • added: method BugBearVisitor.visit_Set(node)
  • added: method NamedExprFinder.visit(node)
  • added: method NamedExprFinder.visit_NamedExpr(node: ast.NamedExpr)
  • added: static method BugBearVisitor.find_decorator_name(d)
  • added: variable B028
  • added: variable B029
  • added: variable B030
  • added: variable B031
  • added: variable B032
  • added: variable B033
  • added: variable B034
  • added: variable B035
  • added: variable B902_default_decorators
  • added: variable B906
  • added: variable B907
  • added: variable B908
  • added: variable B908_pytest_functions
  • added: variable B908_unittest_methods