diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ae3d79b71d..1c51f465bd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] diff --git a/discord/channel.py b/discord/channel.py index 9a2e931eba..076b2c704f 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -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: @@ -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):