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
handle NumPy style docstring params containing a colon google#189
The problematic case was:
name : str
name, default: World
The second line wasn't treated as a description if it contained a colon
and ended up ignored
We parse line by line, and used to keep track only of the next line.
I added tracking of the previous line so that I can compare the indentations.
That allows to distinguish descriptions and a parameter definitions.
COPYBARA_INTEGRATE_REVIEW=google#201 from vbarbaresi:bugfix_189 8e6baa4
PiperOrigin-RevId: 297932310
Change-Id: Ia5ee774890a713c8ec1d5b3a895d2cb0163849c3
0 commit comments