Skip to content

Conversation

Spider84pr
Copy link
Contributor

I have added variable annotation

Copy link
Contributor

github-actions bot commented Sep 8, 2025

Diff from mypy_primer, showing the effect of this PR on open source code:

discord.py (https://github.com/Rapptz/discord.py)
- discord/ext/commands/hybrid.py:508: error: Overlap between argument names and ** TypedDict items: "name", "description"  [misc]
+ discord/ext/commands/hybrid.py:508: error: Overlap between argument names and ** TypedDict items: "description", "name"  [misc]
- discord/ext/commands/hybrid.py:629: error: Overlap between argument names and ** TypedDict items: "name", "description"  [misc]
+ discord/ext/commands/hybrid.py:629: error: Overlap between argument names and ** TypedDict items: "description", "name"  [misc]

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, but it is not quite correct. So, I am closing this one. Please, feel free to create new ones and ask any questions.

@@ -1,4 +1,4 @@
from nanoid.generate import generate
from nanoid.non_secure_generate import non_secure_generate

__all__ = ["generate", "non_secure_generate"]
Copy link
Member

Choose a reason for hiding this comment

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

__all__ is a special case. We don't annotate this variable, we just specify its contents. So, there's nothing to add here :)

@sobolevn sobolevn closed this Sep 8, 2025
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