GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Support __call__ on metaclasses · Issue #14122 · python/mypy

Support __call__ on metaclasses #14122

New issue
Copy link
New issue
Copy link
Open
Open
Support __call__ on metaclasses#14122
Copy link
Labels
bugmypy got something wrongpriority-2-lowtopic-protocols

Description

@ilevkivskyi
ilevkivskyi
opened on Nov 17, 2022
Issue body actions

Currently we don't handle __call__() on metaclasses correctly. For example:

class M(type):
    def __call__(self, x: int) -> Any: ...

class C(metaclass=M): ...

C(x=1)

results in a false positive. Also similarly handling of metaclass __call__() in protocols is not very principled, see e.g. #14121

Reacted by Connor Brinton, Peter Bull, ippei, John Marshall, Ganden Schaffner, Randolf Scholz, Cristian Garcia, Jaen, E. M. Bray and Pétur Ingi Egilsson

Activity

  1. ilevkivskyi
    added
    bugmypy got something wrong
    priority-2-low
    topic-protocols
    on Nov 17, 2022
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 wrongpriority-2-lowtopic-protocols

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.