David Beazley on Nostr: Another Python release. Another sad face. >>> def f(x: list[int]): pass ... >>> def ...
Another Python release. Another sad face.
>>> def f(x: list[int]): pass
...
>>> def g(x: iter[int]): pass
...
Traceback (most recent call last):
File "<python-input-1>", line 1, in <module>
def g(x: iter[int]): pass
~~~~^^^^^
TypeError: 'builtin_function_or_method' object is not subscriptable
>>>
>>> def f(x: list[int]): pass
...
>>> def g(x: iter[int]): pass
...
Traceback (most recent call last):
File "<python-input-1>", line 1, in <module>
def g(x: iter[int]): pass
~~~~^^^^^
TypeError: 'builtin_function_or_method' object is not subscriptable
>>>