Closed Evgenus closed 3 years ago
RepeatedCompositeFieldContainer
should inherit from Sequence
here in typeshed - which comes for free with mypy
Shouldn't need to be autogenerated - rather we should be able to get it out of typeshed. I believe that we don't actually copy methods of Message class - only ones that need more special annotations.
WKT are supported now!
RepeatedCompositeFieldContainer
(which is used to wrap all repeated fields) is not iterable for mypy. So all items in loops are infered as Any.Message
class into each message is not the best approach IMO.What do you think about creating package with stubs for google.protobuf internal classes?
In that case all generated messages annotations could just inherit base
Message
class (same way as actually generated protobuf messages do)