You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,12 +102,18 @@ See [Changelog](CHANGELOG.md) for full listing
102
102
*`mypy-protobuf` generates correctly typed `HasField`, `WhichOneof`, and `ClearField` methods.
103
103
* There are differences in how `mypy-protobuf` and `pyi_out` generate enums. See [this issue](https://github.com/protocolbuffers/protobuf/issues/8175) for details
104
104
* Type aliases exported for `HasField`, `WhichOneof` and `ClearField` arguments
105
+
* Parses comments as docstrings
105
106
106
107
#### Examples
107
108
108
109
`mypy-protobuf`:
109
110
110
111
```python
112
+
"""
113
+
@generated by mypy-protobuf. Do not edit manually!
114
+
isort:skip_file
115
+
Edition version of proto2 file"""
116
+
111
117
import builtins
112
118
import google.protobuf.descriptor
113
119
import google.protobuf.message
@@ -132,8 +138,10 @@ class Editions2024SubMessage(google.protobuf.message.Message):
0 commit comments