Skip to content

Commit 1110109

Browse files
dependabot[bot]plun1331LulalabyBobDotCompre-commit-ci[bot]
authored
chore(deps-dev): Bump bandit from 1.7.4 to 1.7.5 (#1971)
* chore(deps-dev): Bump bandit from 1.7.4 to 1.7.5 Bumps [bandit](https://github.com/PyCQA/bandit) from 1.7.4 to 1.7.5. - [Release notes](https://github.com/PyCQA/bandit/releases) - [Commits](PyCQA/bandit@1.7.4...1.7.5) --- updated-dependencies: - dependency-name: bandit dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * docs: add warning comment * style(pre-commit): auto fixes from pre-commit.com hooks --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: plun1331 <[email protected]> Co-authored-by: Lala Sabathil <[email protected]> Co-authored-by: BobDotCom <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 05b5ae3 commit 1110109

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

discord/state.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,8 +1256,10 @@ def is_guild_evicted(self, guild) -> bool:
12561256
return guild.id not in self._guilds
12571257

12581258
async def chunk_guild(self, guild, *, wait=True, cache=None):
1259+
# Note: This method makes an API call without timeout, and should be used in
1260+
# conjunction with `asyncio.wait_for(..., timeout=...)`.
12591261
cache = cache or self.member_cache_flags.joined
1260-
request = self._chunk_requests.get(guild.id)
1262+
request = self._chunk_requests.get(guild.id) # nosec B113
12611263
if request is None:
12621264
self._chunk_requests[guild.id] = request = ChunkRequest(
12631265
guild.id, self.loop, self._get_guild, cache=cache

requirements/dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ mypy~=1.2.0
77
coverage~=7.2
88
pre-commit==3.2.2
99
codespell==2.2.4
10-
bandit==1.7.4
10+
bandit==1.7.5
1111
flake8==6.0.0

0 commit comments

Comments
 (0)