Skip to content

TypedDict overlap check has non-deterministic output #19745

Closed as not planned
Closed as not planned

Description

@srittau

Bug Report

When running mypy primer in typeshed, we often get spurious output like this (from python/typeshed#14649):

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

Expected Behavior

It would be helpful if the argument order in the output would be deterministic to avoid this spurious diff.

Your Environment

  • Mypy version used: 1.16.1
  • Mypy command-line flags:
  • Mypy configuration options from mypy.ini (and other config files):
  • Python version used: 3.13

Activity

  1. srittau commented on Aug 27, 2025

    @srittau
    ContributorAuthor

    And it seems this was already fixed in #19666 by @cdce8p.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions