Skip to content

[flake8-bugbear] Update to 26.10.27 - #16659

Open
hoangchunghien wants to merge 1 commit into
python:mainfrom
hoangchunghien:flake8-bugbear-26.10.27
Open

hoangchunghien wants to merge 1 commit into
python:mainfrom
hoangchunghien:flake8-bugbear-26.10.27

Conversation

@hoangchunghien

Copy link
Copy Markdown
Contributor

Closes: #16457

stubtest failed on the stubsabot bump with 13 errors. flake8-bugbear 26.10.27 adds checks B045, B046, B047 and B049, and the names behind them:

  • module constants EAGER_COMPREHENSION_NODES, B018_ARITHMETIC_OPERATORS, B018_LAZY_FUNCTIONS, B018_RAISING_BLOCKS, B046_DICT_TYPES, B049_DESCRIPTORS and B049_PROPERTY_ACCESSORS;
  • BugBearVisitor.check_for_b045, check_for_b046, check_for_b047 and check_for_b049. check_for_b047 takes ast.Try | ast.TryStar, so it sits behind sys.version_info >= (3, 11) like the other TryStar methods in the stub;
  • B008NamedExprFinder, a NamedExprFinder subclass with visit_GeneratorExp and visit_Lambda;
  • a new imported_names: dict[str, str | None] | None = None parameter on FunctionDefDefaultsVisitor.__init__.

The types follow the upstream annotations and literals in bugbear.py 26.10.27. stubtest, mypy_test.py (3.10 and 3.14), pyright, black, ruff and flake8 pass locally.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant