Skip to content

Upgrading flake8-bugbear 24 to 25

Breaking24.12.12 → 25.11.29Breaking1New3Changed3Fixed1

BreakingUpgrade verdict

1 breaking change.

  • You must run Python 3.10 or newer to use this version.
1 item needs code or config changes

Python requirement changed in 25.10.21: >=3.8.1 → >=3.10.

Breaking1
Requires at least Python 3.10, matching the next release of flake8.

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

  • removed: variable B001
  • removed: variable B002
  • removed: variable B003
  • removed: variable B004
  • removed: variable B005
  • removed: variable B006
  • removed: variable B007
  • removed: variable B008
  • removed: variable B009
  • removed: variable B010
  • removed: variable B011
  • removed: variable B012
  • removed: variable B013
  • removed: variable B014
  • removed: variable B015
  • removed: variable B016
  • removed: variable B017
  • removed: variable B018
  • removed: variable B019
  • removed: variable B020
  • removed: variable B021
  • removed: variable B022
  • removed: variable B023
  • removed: variable B024
  • removed: variable B025
  • removed: variable B026
  • removed: variable B027
  • removed: variable B028
  • removed: variable B029
  • removed: variable B030
  • removed: variable B031
  • removed: variable B032
  • removed: variable B033
  • removed: variable B034
  • removed: variable B035
  • removed: variable B036
  • removed: variable B037
  • removed: variable B039
  • removed: variable B040
  • removed: variable B041
  • removed: variable B901
  • removed: variable B902
  • removed: variable B903
  • removed: variable B904
  • removed: variable B905
  • removed: variable B906
  • removed: variable B907
  • removed: variable B908
  • removed: variable B909
  • removed: variable B910
  • removed: variable B911
  • removed: variable B950
  • removed: variable Error
  • changed: method BugBearChecker.run() → method BugBearChecker.run() -> Iterable[tuple[int, int, str, type]]
  • changed: method BugBearVisitor.check_for_b023(loop_node) -> None → method BugBearVisitor.check_for_b023(loop_node: ast.For | ast.AsyncFor | ast.While | ast.GeneratorExp | ast.SetComp | ast.ListComp | ast.DictComp) -> None
  • changed: method BugBearVisitor.visit_AsyncFor(node) -> None → method BugBearVisitor.visit_AsyncFor(node: ast.AsyncFor) -> None
  • changed: method BugBearVisitor.visit_DictComp(node) -> None → method BugBearVisitor.visit_DictComp(node: ast.DictComp) -> None
  • changed: method BugBearVisitor.visit_For(node) -> None → method BugBearVisitor.visit_For(node: ast.For) -> None
  • changed: method BugBearVisitor.visit_GeneratorExp(node) -> None → method BugBearVisitor.visit_GeneratorExp(node: ast.GeneratorExp) -> None
  • changed: method BugBearVisitor.visit_ListComp(node) -> None → method BugBearVisitor.visit_ListComp(node: ast.ListComp) -> None
  • changed: method BugBearVisitor.visit_SetComp(node) -> None → method BugBearVisitor.visit_SetComp(node: ast.SetComp) -> None
  • changed: method BugBearVisitor.visit_UAdd(node) -> None → method BugBearVisitor.visit_UAdd(node: ast.UAdd) -> None
  • changed: method BugBearVisitor.visit_While(node) -> None → method BugBearVisitor.visit_While(node: ast.While) -> None
  • changed: static method BugBearChecker.adapt_error(e) → static method BugBearChecker.adapt_error(e: error) -> tuple[int, int, str, type]
  • added: class AstPositionNode(Protocol)
  • added: class Error
  • added: constructor Error(message: str)
  • added: field AstPositionNode.col_offset: int
  • added: field AstPositionNode.lineno: int
  • added: method BugBearVisitor.add_error(code: str, node: AstPositionNode, *vars: object) -> None
  • added: method BugBearVisitor.check_for_b042(node: ast.ClassDef) -> None
  • added: method BugBearVisitor.check_for_b912(node) -> None
  • added: variable error_codes