Skip to content

Updates SDK Ref doc strings#1009

Open
Laverne-Encord wants to merge 1 commit intomasterfrom
SDK-Ref-Docstrings-Updates-003
Open

Updates SDK Ref doc strings#1009
Laverne-Encord wants to merge 1 commit intomasterfrom
SDK-Ref-Docstrings-Updates-003

Conversation

@Laverne-Encord
Copy link
Collaborator

Updates SDK Ref doc strings

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @Laverne-Encord, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the clarity and consistency of the SDK's documentation by standardizing spelling conventions and improving the formatting of code examples within docstrings. These changes aim to make the documentation more professional and easier to read for all users.

Highlights

  • Docstring Spelling Standardization: Standardized British English spellings like "unauthorised", "recognised", and "optimised" to their American English counterparts ("unauthorized", "recognized", "optimized") across several docstrings for consistency.
  • Docstring Formatting Improvement: Enhanced the rendering of code examples within docstrings by adding markdown code block delimiters (```), making them more readable and correctly formatted.
  • Minor Typo Correction: Fixed a small typo in encord/orm/label_row.py, changing "thes status" to "the status" for improved clarity.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

Unit test report (Python 3.9.24, Pydantic 2.12.3)

267 tests   267 ✅  9s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit cea52bd.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

Unit test report (Python 3.9.24, Pydantic 1.10.22)

267 tests   267 ✅  9s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit cea52bd.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request primarily focuses on improving the SDK's docstrings. It corrects several spelling mistakes from UK to US English for consistency, fixes a typo, and migrates code block formatting in docstrings from reStructuredText to Markdown. The changes are generally good and improve documentation quality. I've added a few suggestions to remove leftover reStructuredText syntax (::) for better Markdown rendering and consistency.

Comment on lines 46 to +47
form::

```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While migrating the docstrings to use Markdown code blocks, the reStructuredText directive :: was left behind. This will be rendered as literal double colons in Markdown. It should be a single colon : for correct grammar and formatting.

Suggested change
form::
```
form:
```

Comment on lines 86 to +87
A labels dictionary for video is in the form::

```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Similar to a previous comment, the reStructuredText directive :: should be replaced with a single colon : now that the docstring is using Markdown for code blocks.

Suggested change
A labels dictionary for video is in the form::
```
A labels dictionary for video is in the form:
```

Comment on lines 103 to +104
A labels dictionary for an img_group data unit is in the form::

```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The reStructuredText directive :: should be replaced with a single colon : for consistency with the move to Markdown for code blocks.

Suggested change
A labels dictionary for an img_group data unit is in the form::
```
A labels dictionary for an img_group data unit is in the form:
```

Comment on lines 118 to +119
The object answers dictionary is in the form::

```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The reStructuredText directive :: should be replaced with a single colon : for consistency with the move to Markdown for code blocks.

Suggested change
The object answers dictionary is in the form::
```
The object answers dictionary is in the form:
```

Comment on lines 132 to +133
The classification answers dictionary is in the form::

```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The reStructuredText directive :: should be replaced with a single colon : for consistency with the move to Markdown for code blocks.

Suggested change
The classification answers dictionary is in the form::
```
The classification answers dictionary is in the form:
```

Comment on lines 146 to +147
The object actions dictionary is in the form::

```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The reStructuredText directive :: should be replaced with a single colon : for consistency with the move to Markdown for code blocks.

Suggested change
The object actions dictionary is in the form::
```
The object actions dictionary is in the form:
```

Comment on lines 29 to +30
* datasets::

```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While migrating the docstrings to use Markdown code blocks, the reStructuredText directive :: was left behind. This will be rendered as literal double colons in Markdown. It should be a single colon : for correct grammar and formatting.

Suggested change
* datasets::
```
* datasets:
```

Comment on lines 41 to +42
* label_rows::

```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Similar to a previous comment, the reStructuredText directive :: should be replaced with a single colon : now that the docstring is using Markdown for code blocks.

Suggested change
* label_rows::
```
* label_rows:
```

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2025

SDK integration test report

285 tests  ±0   280 ✅  - 1   17m 38s ⏱️ - 2m 38s
  1 suites ±0     4 💤 ±0 
  1 files   ±0     1 ❌ +1 

For more details on these failures, see this check.

Results for commit cea52bd. ± Comparison against base commit af45b08.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant