Updated to version 4.9.0
This commit is contained in:
parent
cf7531ed9d
commit
9217e4a8b4
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,3 +14,4 @@
|
||||
/typing_extensions-4.7.0.tar.gz
|
||||
/typing_extensions-4.7.1.tar.gz
|
||||
/typing_extensions-4.8.0.tar.gz
|
||||
/typing_extensions-4.9.0.tar.gz
|
||||
|
33
291.patch
33
291.patch
@ -1,33 +0,0 @@
|
||||
From 0d240b9ddb1302670646f0a0e88ec56b902ec835 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
||||
Date: Wed, 18 Oct 2023 19:56:52 +0200
|
||||
Subject: [PATCH] Fix tests on Python 3.13
|
||||
|
||||
This is a followup for d95cc228ea96feec105592a9902e5b2d6cc048a9
|
||||
|
||||
The removed block raises TypeError on Python 3.13+.
|
||||
|
||||
The TypeError is already asserted in test_keywords_syntax_raises_on_3_13.
|
||||
|
||||
For older Pythons, the DeprecationWarning and __name__ + __annotations__ value
|
||||
are already asserted in test_typeddict_special_keyword_names.
|
||||
---
|
||||
src/test_typing_extensions.py | 5 -----
|
||||
1 file changed, 5 deletions(-)
|
||||
|
||||
diff --git a/src/test_typing_extensions.py b/src/test_typing_extensions.py
|
||||
index 97717bc..7d8e255 100644
|
||||
--- a/src/test_typing_extensions.py
|
||||
+++ b/src/test_typing_extensions.py
|
||||
@@ -3383,11 +3383,6 @@ def test_typeddict_create_errors(self):
|
||||
with self.assertRaises(TypeError):
|
||||
TypedDict('Emp', [('name', str)], None)
|
||||
|
||||
- with self.assertWarns(DeprecationWarning):
|
||||
- Emp = TypedDict('Emp', name=str, id=int)
|
||||
- self.assertEqual(Emp.__name__, 'Emp')
|
||||
- self.assertEqual(Emp.__annotations__, {'name': str, 'id': int})
|
||||
-
|
||||
def test_typeddict_errors(self):
|
||||
Emp = TypedDict('Emp', {'name': str, 'id': int})
|
||||
if sys.version_info >= (3, 13):
|
@ -1,5 +1,5 @@
|
||||
Name: python-typing-extensions
|
||||
Version: 4.8.0
|
||||
Version: 4.9.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Python Typing Extensions
|
||||
|
||||
@ -7,9 +7,6 @@ License: PSF-2.0
|
||||
URL: https://pypi.org/project/typing-extensions/
|
||||
Source0: %{pypi_source typing_extensions}
|
||||
|
||||
# Fix tests on Python 3.13
|
||||
Patch: https://github.com/python/typing_extensions/pull/291.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
@ -44,7 +41,7 @@ Summary: %{summary}
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n typing_extensions-%{version}
|
||||
%autosetup -n typing_extensions-%{version}
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
@ -73,6 +70,9 @@ cd src
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Dec 10 2023 Jonny Heggheim <hegjon@gmail.com> - 4.9.0-1
|
||||
- Updated to version 4.9.0
|
||||
|
||||
* Mon Sep 18 2023 Jonny Heggheim <hegjon@gmail.com> - 4.8.0-1
|
||||
- Updated to version 4.8.0
|
||||
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (typing_extensions-4.8.0.tar.gz) = 5fbff10e085fbf3ac2e35d08d913608d8c8bca66903435ede91cdc7776d775689a53d64f5f0615fe687c6c228ac854c8651d99eb1cb96ec61c56b7ca01fdd440
|
||||
SHA512 (typing_extensions-4.9.0.tar.gz) = b4faea71d6d29b5d23f920c8865edc2a891887308aea984dbae0159b722da6ef0f4062e5d89bd96a0037391e91e87f213f789209dc1f8942e551979539d3ae11
|
||||
|
Loading…
Reference in New Issue
Block a user