Skip to content

Bump flake8-bugbear from 26.10.27 to 26.11.22 - #1732

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/flake8-bugbear-26.11.22
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/uv/flake8-bugbear-26.11.22

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 26, 2026

Copy link
Copy Markdown
Contributor

Bumps flake8-bugbear from 26.10.27 to 26.11.22.

Release notes

Sourced from flake8-bugbear's releases.

26.11.22

  • B914: Add an optional check for implicit string concatenation on one line inside brackets or call arguments, where a comma is probably missing (#156)
  • B009, B010, B043: don't flag a private __name inside a class, where obj.__name would be name-mangled and not equivalent
  • B031: avoid IndexError crash on empty or 1-element tuple targets in itertools.groupby() loops and support 2-element list unpacking targets
  • B909: check annotated subscript assignments inside loops.
  • B023: don't flag a lambda that is called right where it is defined, e.g. (lambda: x)()
  • B040: still report when the only call is fut.exception(), task.exception() or logger.exception(..., exc_info=False), which don't show the caught exception
  • B018, B031, B911: a function parameter named map, groupby, batched and so on means the bare name isn't the builtin/itertools one, like a local variable of that name already did
  • B031, B905, B911: recognize itertools imported under another name, e.g. it.batched() and it.cycle() after import itertools as it
  • B007, B020: also check async for loops
  • B017, B022: check every item of a multi-item with statement, not just the first one, e.g. with open(path), pytest.raises(Exception):
  • README: add Avoid/Prefer code examples for B004, B007 and B034

26.11.16

  • B048: Add new check for using the result of str.find()/str.rfind() directly as a boolean (#170)
  • B909: detect mutations when a loop unpacks the iterable's elements.
  • B040: don't report an exception whose note is shown by logger.exception(), exc_info=True, traceback.print_exc()/format_exc() or sys.exc_info()
  • B021: also check f-string docstrings on async def functions
  • README: add Avoid/Prefer code examples for B006, B008, B015, B017, B023 and B032

26.11.9

  • Drop Python 3.10 support (flake8 itself now requires >=3.11)
  • B018: only report a map(), filter(), reversed(), zip() or enumerate() statement when the name is the builtin, not when the module defines or imports its own function under that name, which may well do the work
  • B031, B911: a bare groupby/batched imported from itertools no longer counts as itertools when a later module-level def or assignment replaces it
  • B031, B911: an annotated batched: Callable = itertools.batched counts as itertools, like the same assignment without the annotation
  • B912, B913: only report map() and zip() when the name is the builtin, not when a module-level def, class, import or assignment replaces it with something else
  • B905, B910: only report zip() and defaultdict(int) when the name is the builtin zip/collections.defaultdict, not when a module-level def, class, import or assignment replaces it with something else
  • B018, B031, B905, B910, B911: an import or zip = builtins.zip style alias inside a function or class no longer overrides the module's own def, class or import of that name, since it only binds the name locally
  • B042: don't report an __init__ that calls a direct base class's __init__ explicitly and forwards its own arguments unchanged and in order, like Exception.__init__(self, msg, opt), also after another base's __init__

... (truncated)

Commits
  • 12fba68 Release 26.11.22
  • 2bd3b7e Merge pull request #649 from anubhavlal07/fix/b009-mangled-names
  • 4dd8f80 Merge main into fix/b009-mangled-names
  • d4d2138 Merge pull request #648 from aloneangel45/fix/b031-short-unpack-target
  • 6b506ab B009, B010, B043: skip mangled names
  • 6410330 B031: guard short tuple targets against IndexError and handle list unpacking
  • 71c17a6 Merge pull request #647 from umrndem/fix/b909-annotated-subscript-assignment
  • 277f676 Merge pull request #646 from shivangithaker-0510/fix/b017-b022-all-with-items
  • 2322259 Merge main into fix/b017-b022-all-with-items
  • c9215f0 B017, B022: report a with statement once, even with two offending items
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 26.10.27 to 26.11.22.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](PyCQA/flake8-bugbear@26.10.27...26.11.22)

---
updated-dependencies:
- dependency-name: flake8-bugbear
  dependency-version: 26.11.22
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants