Skip to content

More principled solution for universal quantificatoin of non-Callable types #15909

Open
@ilevkivskyi

Description

@ilevkivskyi

Currently we support a type like forall T . Foo[[x: T], T] by allowing to capture a generic callable with a ParamSpec. This is arguably hacky, and may fail in unpredictable ways. Also such types are not user-definable. At some point in distant future we may want to add a support for defining such types.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ilevkivskyi

        Issue actions

          More principled solution for universal quantificatoin of non-Callable types · Issue #15909 · python/mypy