Skip to content

Conversation

brianschubert
Copy link
Member

def add_duplicates(self, li: Element, duplicates: int) -> None: ...
def get_num_duplicates(self, li: Element) -> int: ...
def handle_duplicates(self, parent: Element) -> None: ...
def run(self, root: Element) -> None: ...
Copy link
Member Author

Choose a reason for hiding this comment

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

note: I opportunistically added a few overrides for run methods: the definition in Treeprocessor has the signature def run(self, root: Element) -> Element | None: ..., but these implemenations always return None.

Copy link
Contributor

github-actions bot commented Sep 5, 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]

@srittau srittau merged commit cb2c371 into python:main Sep 5, 2025
48 checks passed
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.

3 participants