GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix Numerous Spelling, Style, English Issues by waprin · Pull Request #2139 · googleapis/google-cloud-python

Conversation

@waprin

@waprin waprin commented Aug 18, 2016

Copy link
Copy Markdown
Contributor

A 30 min quick, but slow and deliberate, review of the existing codebase.

  • Multiple typos and misspellings
  • Multiple missing or incorrect punctuation
  • Unused variables

The library is also wildly inconsistent on its usage of % vs the format function for string interpolation. I suggest format, but that belongs in its own PR.

http://stackoverflow.com/questions/12382719/python-way-of-printing-with-format-or-percent-form

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

elibixby reacted with laugh emoji
All reactions
  • 😄 1 reaction
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 18, 2016
@waprin

waprin commented Aug 18, 2016

Copy link
Copy Markdown
Contributor Author

@dhermes @tseaver

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Aug 18, 2016

Copy link
Copy Markdown
Contributor

Cool to accept typo / grammar fixes but I'm not sure when punctuation is warranted / if we want to have an opinion on that. Similar on % vs. format. I used to be all format all the time but found it's hard to adhere to in practice (e.g. logging.log() assumes % formatting)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@theacodes

theacodes commented Aug 18, 2016

Copy link
Copy Markdown
Contributor

hard to adhere to in practice (e.g. logging.log() assumes % formatting)

I just ignore logging's sugar. .format is definitely preferable.

This change LGTM.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes
dhermes reviewed Aug 18, 2016
View reviewed changes
Comment thread gcloud/dns/changes.py Outdated
def exists(self, client=None):
"""API call: test for the existence of the change set via a GET request
"""API call: test for the existence of the change set via a GET
request.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Bill Prin
Fix Numerous Spelling, Style, English Issues
5a2d185
- Dozes of typos and misspellings 
- Dozens of missing incorrect punctuation
- Unused variables

The library is also wildly inconsistent 
on its usage of % vs the format function for 
string interpolation. I would like to fix that as
 well but not sure what the standard is, I 
recommend the format function.
@waprin
waprin force-pushed the typos branch from 180fa5b to 5a2d185 Compare August 18, 2016 21:59
@dhermes

dhermes commented Aug 18, 2016

Copy link
Copy Markdown
Contributor

OK finished my pass and don't see many problems. I'd really like to hear the why on adding all the . but the typos are obvious so thanks.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Aug 18, 2016

Copy link
Copy Markdown
Contributor

@waprin I see you made a new commit since I originally reviewed. Care to point me to what (in the 28 files) has changed?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@waprin

waprin commented Aug 18, 2016

Copy link
Copy Markdown
Contributor Author

My bad I forgot to push commits again. I fixed the line that I moved to the next lien by removing an extraneous space. Will remember to push commits.

I don't know about the punctuation, depends on whether docstring consistency is important. Most of the repo uses periods at the end of each docstring param description.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Aug 18, 2016

Copy link
Copy Markdown
Contributor

We're good to merge here / LGTM

I'm just trying to point out that human language is hard and enforcing these sorts of rules without a tool of some kind seems to be a big stretch goal.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@waprin

waprin commented Aug 18, 2016

Copy link
Copy Markdown
Contributor Author

Yes I agree 1000% that the more we can do with tools the better.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes
dhermes merged commit 467ed7d into googleapis:master Aug 22, 2016
@dhermes dhermes mentioned this pull request Sep 19, 2016
Cut 0.19.0 release. #2270
Merged
parthea pushed a commit that referenced this pull request Mar 6, 2026
@release-please
chore(main): release 3.31.0 (#2139)
143999f
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Apr 1, 2026
@sycai @TrevorBergeron
feat: add output_schema parameter to ai.generate() (#2139)
ae5e5d3
* feat: add output_schema to ai.generate()

* fix lint

* fix lint

* fix test

* fix mypy

* fix lint

* code optimization

* fix tests

* support case-insensitive type parsing

* fix test

* fix: Fix row count local execution bug (#2133)

* fix: join on, how args are now positional (#2140)

---------

Co-authored-by: TrevorBergeron <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@waprin @dhermes @theacodes @tseaver @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.