Anthony Sottile <asott...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue35001>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to