Another probably-bug. It seems like dependency res...
# general
r
Another probably-bug. It seems like dependency resolution fails when you have import blocks that are formatted like this:
Copy code
from typing import (

    cast,
)
The relevant code uses
tokenize.generate_tokens
to extract imported symbols on each line of the import, which crashes when a line is empty in multi-line statement. Although arguably this is a bug in the tokenize library itself. How unfortunate.
e
You are maintaining a codebase with all sorts of hidden treasures!
💯 1
r
A true natural fuzz test
h
If you import modules instead of module members, does this go away?
r
I'm not sure but I would think tokenization doesn't care about the semantics of what each symbol means. That comes much later
b
File an issue?
👍 1
h
Yes please! And link to it here. This seems like a straight up bug.
r