1 SUSPECT #1
import asyncio
async def m():
await asyncio.wait_for(asyncio.sleep(1), timeout=0.01)
asyncio.run(m()) Traceback (most recent call last):
File "lineup.py", line 6, in <module>
asyncio.run(m())
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
File "lineup.py", line 4, in m
await asyncio.wait_for(asyncio.sleep(1), timeout=0.01)
TimeoutError 2 SUSPECT #2
from typing import get_type_hints
class X:
y: "UndefinedType"
get_type_hints(X) Traceback (most recent call last):
File "lineup.py", line 6, in <module>
get_type_hints(X)
~~~~~~~~~~~~~~^^^
File "/usr/lib/python3.11/typing.py", line 2077, in get_type_hints
value = _eval_type(value, base_globals, localns)
NameError: name 'UndefinedType' is not defined 3 SUSPECT #3
from itertools import product
print(list(product())) Traceback (most recent call last):
File "lineup.py", line 2, in <module>
print(list(product()))
~~~~~~~^^
ValueError: product() requires at least one iterable 4 SUSPECT #4
int(3 + 4j) Traceback (most recent call last):
File "lineup.py", line 1, in <module>
int(3 + 4j)
~~~^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'complex' 5 SUSPECT #5
from pathlib import Path
Path("/tmp/absent_xyz_test").resolve(strict=True) Traceback (most recent call last):
File "lineup.py", line 2, in <module>
Path("/tmp/absent_xyz_test").resolve(strict=True)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/absent_xyz_test'