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 davetapley
Recipients ARF1, davetapley, dcecile, drhagen, eric.smith, lopek
Date 2021-09-10.03:24:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631244282.48.0.830710634967.issue39442@roundup.psfhosted.org>
In-reply-to
Content
I don't know if it helps, but I just ran in to this when I followed the advice at (1) because I wanted to type hint a method with the type of the enclosing class.

This broke a package I'm working on in parallel (2) because it uses dataclasses.fields internally.

I'm not sure what the advice would be here, should my package detect if the caller has `from __future__ import annotations` and do something?



(1) https://stackoverflow.com/questions/33533148/how-do-i-type-hint-a-method-with-the-type-of-the-enclosing-class/33533514#33533514
(2) https://pypi.org/project/dataclasses-configobj/
History
Date User Action Args
2021-09-10 03:24:42davetapleysetrecipients: + davetapley, eric.smith, drhagen, lopek, ARF1, dcecile
2021-09-10 03:24:42davetapleysetmessageid: <1631244282.48.0.830710634967.issue39442@roundup.psfhosted.org>
2021-09-10 03:24:42davetapleylinkissue39442 messages
2021-09-10 03:24:42davetapleycreate