You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/toolz/files/toolz-0.11.1-py310.patch

26 lines
720 B

From da81b1e8ab96b22ed81e6414099aba066633f3ff Mon Sep 17 00:00:00 2001
From: Erik Welch <erik.n.welch@gmail.com>
Date: Thu, 22 Apr 2021 00:20:24 -0500
Subject: [PATCH] Support Python 3.10 by adding `anext` signature.
Fixes #512
---
.travis.yml | 3 ++-
toolz/_signatures.py | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/toolz/_signatures.py b/toolz/_signatures.py
index 328cea91..3ce1616a 100644
--- a/toolz/_signatures.py
+++ b/toolz/_signatures.py
@@ -45,6 +45,9 @@
lambda x: None],
all=[
lambda iterable: None],
+ anext=[
+ lambda aiterator: None,
+ lambda aiterator, default: None],
any=[
lambda iterable: None],
apply=[