Skip to content

Commit

Permalink
chore(deps-dev): Bump bandit from 1.7.4 to 1.7.5 (#1971)
Browse files Browse the repository at this point in the history
* 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] <support@github.com>

* docs: add warning comment

* style(pre-commit): auto fixes from pre-commit.com hooks

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: plun1331 <49261529+plun1331@users.noreply.github.com>
Co-authored-by: Lala Sabathil <lala@pycord.dev>
Co-authored-by: BobDotCom <71356958+BobDotCom@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
5 people committed Apr 26, 2023
1 parent 05b5ae3 commit 1110109
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion discord/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -1256,8 +1256,10 @@ def is_guild_evicted(self, guild) -> bool:
return guild.id not in self._guilds

async def chunk_guild(self, guild, *, wait=True, cache=None):
# Note: This method makes an API call without timeout, and should be used in
# conjunction with `asyncio.wait_for(..., timeout=...)`.
cache = cache or self.member_cache_flags.joined
request = self._chunk_requests.get(guild.id)
request = self._chunk_requests.get(guild.id) # nosec B113
if request is None:
self._chunk_requests[guild.id] = request = ChunkRequest(
guild.id, self.loop, self._get_guild, cache=cache
Expand Down
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ mypy~=1.2.0
coverage~=7.2
pre-commit==3.2.2
codespell==2.2.4
bandit==1.7.4
bandit==1.7.5
flake8==6.0.0

0 comments on commit 1110109

Please sign in to comment.