Evan Fagerberg <adioe...@gmail.com> added the comment:
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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40864> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com