[docs] [issue35001] ImportFrom level cannot be optional
Anthony Sottile
report at bugs.python.org
Wed Oct 17 01:25:42 EDT 2018
Anthony Sottile <asottile at umich.edu> added the comment:
Hmmm, I don't think mypy has an annotation for "sometimes has an attribute" -- `Optional[T]` is `Union[T, None]` (why I tried `None`).
But you're right, `FromImport` is constructable without a `level` -- it seems to behave as `level=0` (I guess as expected!)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35001>
_______________________________________
More information about the docs
mailing list