We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 228d76b commit 334de90Copy full SHA for 334de90
linq/core/flow.py
@@ -1,7 +1,21 @@
1
from collections import defaultdict
2
from functools import partial, update_wrapper
3
4
-from typing import Generic, TypeVar
+try:
5
+ from typing import Generic, TypeVar
6
+except:
7
+ class GenericMeta(type):
8
+ def __getitem__(self, item):
9
+ return object
10
+
11
12
+ class Generic(metaclass=GenericMeta):
13
+ pass
14
15
16
+ class TypeVar:
17
+ def __new__(cls, *args, **kwargs):
18
+ return args
19
20
T = TypeVar('T')
21
test.py
@@ -188,7 +188,7 @@ def test_Any():
188
189
190
def test_Next():
191
- Flow((i for i in range(3))).Next()
+ Flow((i for i in range(3))).first()
192
193
194
test_Next()
0 commit comments