Uh oh!
There was an error while loading. Please reload this page.
Replace types string with str. - #2579
Conversation
Used the command: ag -l 'rtype: string' | xargs sed -i .bak 's/rtype: string/rtype: str/g' Based on this comment: googleapis#2485 (comment) `str` is a type, `string` is a module.
Uses command: ag -l 'type ([^:]+): string' | \ xargs gsed -r -i.bak -e 's/type ([^:]+): string/type \1: str/g' Note: [-r for gsed (GNU sed) is needed for group matching](http://superuser.com/a/336819/125262).
theacodes
commented
Oct 20, 2016
😆 |
| """ID for the dataset resource. | ||
| :rtype: string, or ``NoneType`` | ||
| :rtype: str, or ``NoneType`` |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uses the command: ag -l 'type ([^:]+): boolean' | \ xargs gsed -r -i.bak -e 's/type ([^:]+): boolean/type \1: bool/g'
dhermes
left a comment
There was a problem hiding this comment.
I actually reviewed every line. Why? Because I'm crazy.
LGTM
(I think it'll be hilarious if Travis / Sphinx barfs on this.)
Uses the command: ag -l 'rtype: boolean' | xargs sed -i .bak 's/rtype: boolean/rtype: bool/g'
tswast
commented
Oct 20, 2016
Thanks. For reviewing. I just added some commits for boolean -> bool, too, based on #2485 (comment) |
dhermes
commented
Oct 20, 2016
GAH! Next time, please "heads up new code" first, then push to the PR. (Since review already finished.) Preference: send two PRs. |
dhermes
commented
Oct 20, 2016
@tswast bool stuff looks good too. Ping me (or @jonparrott) when Travis is green? |
tswast
commented
Oct 20, 2016
Works for me. (Two PRs next time and pinging for Travis) |
Replace types string with str.
Replace types string with str.
Replace types string with str.
Replace types string with str.
Replace types string with str.
Replace types string with str.
Replace types string with str.
Replace types string with str.
Replace types string with str.
Based on this comment: #2485 (comment)
For rtypes, used the command:
For types, used the command:
Note: -r for gsed (GNU sed) is needed for group matching.