Commit fc432cc
authored
feat: code gen produces same imports as grpcio (#41)
without this change purerpc produces import statements of the form
`import foo.bar.some_pb2 as foo_dot_bar_dot_some__pb2`
whereas grpcio would produce
`from foo.bar import some_pb2 as foo_dot_bar_dot_some__pb2`
While equivalent where the import system is concerned, some tools
and scripts exist for automatically fixing generated import
statements (see for example https://github.com/cpcloud/protoletariat).
These only work for import statements written in the latter form.1 parent 30640d5 commit fc432cc
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
14 | 21 | | |
15 | 22 | | |
16 | 23 | | |
| |||
0 commit comments