termux-packages/packages/python/fix-GenericAlias.patch

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``