1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-13 21:26:39 +00:00
termux-packages/packages/python/fix-GenericAlias.patch
Lucy Phipps 30fc34c13b
python 3.9.2, take 2 (#6441)
* python: update to 3.9.2

* i hope this fixes the build

Co-authored-by: Lucy Phipps <landfillbaby@users.noreply.github.com>
2021-02-22 12:12:41 +00:00

14 lines
454 B
Diff

diff --git a/Lib/_collections_abc.py b/Lib/_collections_abc.py
index b6ecf8e..73fa666 100644
--- a/Lib/_collections_abc.py
+++ b/Lib/_collections_abc.py
@@ -413,7 +413,7 @@ def __subclasshook__(cls, C):
return NotImplemented
-class _CallableGenericAlias(GenericAlias):
+class _CallableGenericAlias(list[int]):
""" Represent `Callable[argtypes, resulttype]`.
This sets ``__args__`` to a tuple containing the flattened``argtypes``