Environment details
- Programming language: Python
- OS: Arch Linux (Kernel: Linux 5.16.5-arch1-1, Architecture: x86-64)
- Language runtime version: tested with 3.8, 3.9, 3.10
- Package version: 1.20.0
Steps to reproduce
- Install new proto-plus version
-
>>> import proto.message
>>> dir(proto.message.Message)
[...]
AttributeError: type object 'Message' has no attribute '_meta'
_meta is only set when new proto.message.Message types are created, so __dir__ does not work on
proto.message.Message itself.
In this case __dir__ should probably fall back to object.__dir__ as it was implicitly the case in previous versions.
Environment details
Steps to reproduce
_metais only set when newproto.message.Messagetypes are created, so__dir__does not work onproto.message.Messageitself.In this case
__dir__should probably fall back toobject.__dir__as it was implicitly the case in previous versions.