Message 401549 - Python tracker
Message401549
| 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:42 | davetapley | set | recipients: + davetapley, eric.smith, drhagen, lopek, ARF1, dcecile |
| 2021-09-10 03:24:42 | davetapley | set | messageid: <1631244282.48.0.830710634967.issue39442@roundup.psfhosted.org> |
| 2021-09-10 03:24:42 | davetapley | link | issue39442 messages |
| 2021-09-10 03:24:42 | davetapley | create | |