File: 0002-Drop-extra-TypeVar-fails-in-Python-3.12.patch

package info (click to toggle)
isbg 2.3.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 468 kB
  • sloc: python: 1,906; makefile: 108; sh: 24
file content (24 lines) | stat: -rw-r--r-- 626 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Jochen Sprickerhof <jspricke@debian.org>
Date: Tue, 2 Jan 2024 11:06:42 +0100
Subject: Drop extra TypeVar, fails in Python 3.12

---
 isbg/imaputils.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/isbg/imaputils.py b/isbg/imaputils.py
index c0d19b6..6c79f50 100644
--- a/isbg/imaputils.py
+++ b/isbg/imaputils.py
@@ -35,9 +35,9 @@ from hashlib import md5
 from isbg import utils
 from .utils import __
 
-from typing import List, TypeVar, Union
+from typing import List, Union
 
-Email = TypeVar(email.message.Message)
+Email = email.message.Message
 Uid = Union[int, str]
 Uids = List[int]