[From nobody Fri Oct 30 15:23:05 2026
Received: (at submit) by bugs.debian.org; 2 Oct 2026 07:40:09 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-18.9 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,FOURLA,HAS_PACKAGE,NO_RELAYS,XMAILER_REPORTBUG
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 27; hammy, 150; neutral, 93; spammy,
 0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
 0.000-+--X-Debbugs-Cc, 0.000-+--python3, 0.000-+--H*Ad:N*Bug,
 0.000-+--HTo:N*Debian
Return-path: &lt;julien@palard.fr&gt;
Received: via submission by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;julien@palard.fr&gt;) id 1xCXsD-002bTN-1j
 for submit@bugs.debian.org; Fri, 02 Oct 2026 07:40:09 +0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Julien Palard &lt;julien@palard.fr&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: python3-deprecated: When pypy3 is installed,
 installing python3-deprecated show SyntaxErrors
Message-ID: &lt;179092680384.1017299.11375024887620024094.reportbug@kalir.local&gt;
X-Mailer: reportbug 13.2.0+nmu1
Date: Fri, 02 Oct 2026 09:40:03 +0200
Delivered-To: submit@bugs.debian.org

Package: python3-deprecated
Version: 3.0.0-1
Severity: normal
X-Debbugs-Cc: julien@palard.fr

Dear Maintainer,

When installing python3-deprecated, if and only if pypy3 is installed, I'm getting the following errors:

    Failed to byte-compile /usr/lib/python3/dist-packages/deprecated/classic.py:   File &quot;/usr/lib/python3/dist-packages/deprecated/classic.py&quot;, line 33
        type WarningAction = Literal[&quot;default&quot;, &quot;error&quot;, &quot;ignore&quot;, &quot;always&quot;, &quot;module&quot;, &quot;once&quot;]
             ^^^^^^^^^^^^^
    SyntaxError: invalid syntax

    Failed to byte-compile /usr/lib/python3/dist-packages/deprecated/google.py:   File &quot;/usr/lib/python3/dist-packages/deprecated/google.py&quot;, line 49
        type GoogleSection = Literal[&quot;versionadded&quot;, &quot;versionchanged&quot;, &quot;deprecated&quot;]
             ^^^^^^^^^^^^^
    SyntaxError: invalid syntax

    Failed to byte-compile /usr/lib/python3/dist-packages/deprecated/numpy.py:   File &quot;/usr/lib/python3/dist-packages/deprecated/numpy.py&quot;, line 53
        type NumpySection = Literal[&quot;versionadded&quot;, &quot;versionchanged&quot;, &quot;deprecated&quot;]
             ^^^^^^^^^^^^
    SyntaxError: invalid syntax

    Failed to byte-compile /usr/lib/python3/dist-packages/deprecated/params.py:   File &quot;/usr/lib/python3/dist-packages/deprecated/params.py&quot;, line 100
        def __call__[**P, R](self, f: Callable[P, R]) -&gt; Callable[P, R]:
                    ^
    SyntaxError: expected '('

    Failed to byte-compile /usr/lib/python3/dist-packages/deprecated/sphinx.py:   File &quot;/usr/lib/python3/dist-packages/deprecated/sphinx.py&quot;, line 35
        type SphinxDirective = Literal[&quot;versionadded&quot;, &quot;versionchanged&quot;, &quot;deprecated&quot;]
             ^^^^^^^^^^^^^^^
    SyntaxError: invalid syntax

This is similar to: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1136119

So probably fixable by using an appropriate X-Python3-Version to debian/control.

Versions:

pypy3: 8.0.0+dfsg-1
python3-deprecated: 3.0.0-1

Bests,

-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 7.2.6+deb14-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-deprecated depends on:
ii  python3        3.14.7-3
ii  python3-wrapt  2.3.0-1

python3-deprecated recommends no packages.

python3-deprecated suggests no packages.

-- no debconf information
]