Skip to content

Add support for PEP 702 (@deprecated) #16111

Closed
@llucax

Description

@llucax

Feature

Report where @deprecated symbols are used in the code.

Pitch

Python 3.12 is coming soon, and it introduces PEP 702 (the @deprecated decorator).mypy should support it.

Activity

hauntsaninja

hauntsaninja commented on Sep 14, 2023

@hauntsaninja
Collaborator

(Technically PEP 702 will not be in Python 3.12, the PEP has not been accepted. But yes, mypy should support the draft standard and its use via typing_extensions)

Bendabir

Bendabir commented on Mar 16, 2024

@Bendabir

If some people are interested, I wrote a small plugin to support this until it's part of mypy directly : https://github.com/Bendabir/mypypp

I don't really know the internals so it's probably a bit hacky but it appears to work.

EwoutH

EwoutH commented on Aug 17, 2024

@EwoutH

If I'm correct, this issue is required for Python 3.13 support right? What's needed to move it forward?

hauntsaninja

hauntsaninja commented on Aug 17, 2024

@hauntsaninja
Collaborator

You could make a PR that incorporates this feedback: #17476 (review)

added a commit that references this issue on Oct 6, 2024
94c49a8

1 remaining item

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @JelleZijlstra@llucax@Bendabir@hauntsaninja@EwoutH

      Issue actions

        Add support for PEP 702 (`@deprecated`) · Issue #16111 · python/mypy