issues Search Results · repo:PyCQA/flake8-bugbear language:Python
Filter by
234 results
(66 ms)234 results
inPyCQA/flake8-bugbear (press backspace or delete to remove)Hi,
Attempting to run the test suite with pytest -vv, I see this:
============================= test session starts ==============================
platform linux -- Python 3.10.7, pytest-8.3.3, pluggy-1.5.0 ...
Apteryks
- 2
- Opened on Nov 29, 2024
- #499
As of Python 3.13, itertools.batched has a strict parameter that defaults to False. By default, the batches might not be
of the same size, which may cause subtle bugs. Whenstrict=True, it raises ValueError ...
tjkuson
- 6
- Opened on Nov 16, 2024
- #498
If a warnings.warn call contains no stacklevel but skip_file_prefixes is set, no issue should be raised, because if
skip_file_prefixes is used, the author basically skips stack entries and also stacklevel ...
enhancement
help wanted
terrible_maintainer
kasium
- 4
- Opened on Oct 31, 2024
- #497
CONSTANT = 1
def fn(x):
global CONSTANT # - unnecessary, unidiomatic, and a (small) performance hit
return x + CONSTANT
The global statement is only required when assigning to a global variable; ...
Zac-HD
- 2
- Opened on Sep 17, 2024
- #492
The async-lru project provides a port for Python s built-in functools.lru_cache function for asyncio.
The same rules apply here with respect to garbage collection on instance methods. As this package ...
enhancement
help wanted
Stealthii
- 1
- Opened on Aug 8, 2024
- #488
When running some flake8 tests also including flake8-bugbear I can see the following DeprecationWarning
.nox/test_flake8-3-10-flake8-7/lib/python3.10/site-packages/bugbear.py:49: in module
@attr.s(hash=False) ...
bug
help wanted
kasium
- 1
- Opened on Aug 5, 2024
- #485
I got a B901 warning (well, from ruff, not directly from flake8-bugbear) about a function where I use a return statement
in a generator. But it was on purpose; returning from a generator is occasionally ...
JelleZijlstra
- Opened on Jul 2, 2024
- #480
Consider suppressing B017 where msg= is passed to assertRaises, as it also validates the actual message in the raised
exception matches msg.
Example: assertRaises(Exception, msg= Some exception message ...
slw07g
- 3
- Opened on Jun 26, 2024
- #479
We should add type hinting everywhere across the code.
Happy for gradual, but eventually working up to mypy strict typing.
enhancement
help wanted
cooperlees
- 4
- Opened on Jun 24, 2024
- #478
from contextvars import ContextVar, copy_context
cv: ContextVar[list[int]] = ContextVar( cv , default=[])
def append_to_cv_list():
cv.get().append(0)
ctx = copy_context()
ctx.run(append_to_cv_list) ...
jakkdl
- Opened on Jun 23, 2024
- #475

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.