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 levkivskyi
Recipients apaszke, gvanrossum, levkivskyi
Date 2018-05-03.18:51:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1525373460.47.0.682650639539.issue33420@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, the comment needs to be updated, but as you said, no guaranties about undocumented dunder attribute. We tried to preserve as much of the API as possible in 3.7 after PEP 560, but something needs to be sacrificed (especially in the purely internal API you used).

You may instead use `typing_inspect` library on PyPI, I am not 100% sure it will help in your case, but it has `is_tuple_type` function that should work across several versions of `typing`.
History
Date User Action Args
2018-05-03 18:51:00levkivskyisetrecipients: + levkivskyi, gvanrossum, apaszke
2018-05-03 18:51:00levkivskyisetmessageid: <1525373460.47.0.682650639539.issue33420@psf.upfronthosting.co.za>
2018-05-03 18:51:00levkivskyilinkissue33420 messages
2018-05-03 18:51:00levkivskyicreate