Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update get_or_fetch_channel's return type #187

Merged
merged 3 commits into from
Jul 10, 2023

Conversation

shtlrs
Copy link
Member

@shtlrs shtlrs commented Jul 10, 2023

The get_or_fetch_channel util has missing return types, namely discord.abc.PrivateChannel and discord.Thread.

These are needed to ensure type hinting is correct in upstream projects.

@netlify
Copy link

netlify bot commented Jul 10, 2023

Deploy Preview for bot-core ready!

Name Link
🔨 Latest commit a4c03ec
🔍 Latest deploy log https://app.netlify.com/sites/bot-core/deploys/64ac63785aee0d00080173a0
😎 Deploy Preview https://deploy-preview-187--bot-core.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

pydis_core/utils/channel.py Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
docs/changelog.rst Outdated Show resolved Hide resolved
@shtlrs shtlrs force-pushed the update-channel-util-signature branch from 942bb2e to 32b8455 Compare July 10, 2023 19:51
@shtlrs shtlrs requested a review from ChrisLovering July 10, 2023 19:55
@@ -3,6 +3,9 @@

Changelog
=========

- :bug:`187` Fix :obj:`pydis_core.utils.channel.get_or_fetch_channel`'s return type to include :obj:`discord.abc.PrivateChannel` and :obj`discord.Thread`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- :bug:`187` Fix :obj:`pydis_core.utils.channel.get_or_fetch_channel`'s return type to include :obj:`discord.abc.PrivateChannel` and :obj`discord.Thread`.
- :bug:`187` Fix :obj:`pydis_core.utils.channel.get_or_fetch_channel`'s return type to include :obj:`discord.abc.PrivateChannel` and :obj:`discord.Thread`.

Sorry, missed this on my first comment

@shtlrs shtlrs force-pushed the update-channel-util-signature branch from 32b8455 to a4c03ec Compare July 10, 2023 20:00
@ChrisLovering ChrisLovering merged commit 4c1060a into main Jul 10, 2023
@ChrisLovering ChrisLovering deleted the update-channel-util-signature branch July 10, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants