Skip to content

Commit

Permalink
chore(pre-commit): pre-commit autoupdate (#2117)
Browse files Browse the repository at this point in the history
* chore(pre-commit): pre-commit autoupdate

updates:
- [github.com/asottile/pyupgrade: v3.4.0 → v3.6.0](asottile/pyupgrade@v3.4.0...v3.6.0)

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

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jun 13, 2023
1 parent 3021603 commit 763b14a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
# - --remove-duplicate-keys
# - --remove-unused-variables
- repo: https://github.com/asottile/pyupgrade
rev: v3.4.0
rev: v3.6.0
hooks:
- id: pyupgrade
args: [--py38-plus]
Expand Down
6 changes: 3 additions & 3 deletions discord/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ def _repr_attrs(self) -> tuple[str, ...]:
def _update(self, guild: Guild, data: TextChannelPayload) -> None:
super()._update(guild, data)

async def _get_channel(self) -> "TextChannel":
async def _get_channel(self) -> TextChannel:
return self

def is_news(self) -> bool:
Expand Down Expand Up @@ -1064,11 +1064,11 @@ async def edit(
available_tags: list[ForumTag] = ...,
require_tag: bool = ...,
overwrites: Mapping[Role | Member | Snowflake, PermissionOverwrite] = ...,
) -> "ForumChannel" | None:
) -> ForumChannel | None:
...

@overload
async def edit(self) -> "ForumChannel" | None:
async def edit(self) -> ForumChannel | None:
...

async def edit(self, *, reason=None, **options):
Expand Down

0 comments on commit 763b14a

Please sign in to comment.