summaryrefslogtreecommitdiff
blob: d926f3457ab1146e93637811ef1b6a73075f59b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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=[