Skip to content

Missing List in the generated code #218

@huan

Description

@huan

betterproto version: v2.0.0b2

Reproduce steps:

git clone git@github.com:wechaty/grpc.git
cd grpc/python
make install
make generate
cat src/wechaty_grpc/wechaty/__init__.py

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.

Link to: wechaty/grpc#120

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions