Flake8-bugbear

Latest version: v24.12.12

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 9

23.2.13

* B906: Add ``visit_Bytes``, ``visit_Num`` and ``visit_Str`` to the list of ``visit_*``
functions that are ignored by the B906 check. The ``ast.Bytes``, ``ast.Num`` and
``ast.Str`` nodes are all deprecated, but may still be used by some codebases in
order to maintain backwards compatibility with Python 3.7.
* B016: Warn when raising f-strings.
* Add B028: Check for an explicit stacklevel keyword argument on the warn method from the warnings module.
* Add B029: Check when trying to use ``except`` with an empty tuple i.e. ``except: ()``.
* Add B032: Check for possible unintentional type annotations instead of assignments.

23.1.20

* B024: now ignores classes without any methods. (336)
* B017: Don't warn when ``pytest.raises()`` has a ``match`` argument. (334)
* B906: Ignore ``visit_`` functions with a ``_fields`` attribute that can't contain ast.AST subnodes. (330)

23.1.17

* Rename B028 to B907, making it optional/opinionated.

23.1.14

* Add B906: ``visit_`` function with no further calls to a ``visit`` function. (313)
* Add B028: Suggest ``!r`` when formatted value in f-string is surrounded by quotes. (319)

22.12.6

* Add B905: `zip()` without an explicit `strict=` parameter. (314)
* B027: ignore overload when typing is imported with other names (309)

22.10.27

* B027: Ignore overload decorator (306)
* B023: Also fix map (305)
* B023: Avoid false alarms with filter, reduce, key= and return. Added tests for functools (303)

Page 4 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.