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 efagerberg
Recipients efagerberg, xtreak
Date 2020-06-07.02:01:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1591495268.77.0.269263800844.issue40864@roundup.psfhosted.org>
In-reply-to
Content
Rereading the documentation, I see that a class attribute set to null will return a MagicMock for that attribute. That might be a reasonable workaround. Perhaps the more concrete solution would be that dir lists uninitialized class attributes and if a type hint is present the class attributes uses a spec of that type hint.
History
Date User Action Args
2020-06-07 02:01:08efagerbergsetrecipients: + efagerberg, xtreak
2020-06-07 02:01:08efagerbergsetmessageid: <1591495268.77.0.269263800844.issue40864@roundup.psfhosted.org>
2020-06-07 02:01:08efagerberglinkissue40864 messages
2020-06-07 02:01:08efagerbergcreate