wechaty / grpc

gRPC Service & Protocol Buffers for Wechaty Puppet
https://wechaty.github.io/grpc/
Apache License 2.0
26 stars 22 forks source link

betterproto v2.0.0b2 missing `List` in the generating code #120

Open huan opened 3 years ago

huan commented 3 years ago

We generated the following code:

# ...
from typing import AsyncIterable, AsyncIterator, Iterable, Optional, Union
# ...
    async def contact_phone(
        self, *, contact_id: str = "", phone_list: Optional[List[str]] = None
    ) -> "puppet.ContactPhoneResponse":
# ...

As we can see: there's a List in the code, but there's no List imported from typing.

huan commented 3 years ago

Wait for 2.0.0b3 to be published...

Link to https://github.com/danielgtaylor/python-betterproto/pull/182