This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Anthony Sottile
Recipients Anthony Sottile, docs@python, serhiy.storchaka, srittau, thautwarm
Date 2018-10-17.05:25:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1539753942.77.0.788709270274.issue35001@psf.upfronthosting.co.za>
In-reply-to
Content
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!)
History
Date User Action Args
2018-10-17 05:25:42Anthony Sottilesetrecipients: + Anthony Sottile, srittau, docs@python, serhiy.storchaka, thautwarm
2018-10-17 05:25:42Anthony Sottilesetmessageid: <1539753942.77.0.788709270274.issue35001@psf.upfronthosting.co.za>
2018-10-17 05:25:42Anthony Sottilelinkissue35001 messages
2018-10-17 05:25:42Anthony Sottilecreate