Custom __dir__ in 1.20.0 breaks when called on 'Message' instead of subclass #296
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
Steps to reproduce
_meta
is only set when newproto.message.Message
types are created, so__dir__
does not work onproto.message.Message
itself.In this case
__dir__
should probably fall back toobject.__dir__
as it was implicitly the case in previous versions.The text was updated successfully, but these errors were encountered: