Skip to content

DOC: improvements to inline docs/comments#619

Open
theroggy wants to merge 6 commits intogeopandas:mainfrom
theroggy:DOC-small-improvements-to-inline-docs/comments
Open

DOC: improvements to inline docs/comments#619
theroggy wants to merge 6 commits intogeopandas:mainfrom
theroggy:DOC-small-improvements-to-inline-docs/comments

Conversation

@theroggy
Copy link
Member

@theroggy theroggy commented Nov 30, 2025

General improvements to mainly docstrings + add missing docstrings.

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

@theroggy thanks for working on the docs!
To be fair, I would personally not put too much effort in listing every parameter in the internal docs (when it is often not much more as repeating the type that is also in the signature, mostly in _io.pyx), but adding the short summary lines is definitely a nice improvement (and since you already did the work, I won't further complain about it ;))

pyogrio/_vsi.pyx Outdated
Comment on lines +27 to +29
Path or BytesIO object that you would like to write to. If a BytesIO
object is passed, a temporary in-memory vsimem file will be created for you
to write to.
Copy link
Member

Choose a reason for hiding this comment

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

FWIW, given this function is an internal helper function, and this content is already in the extended summary above, I am not sure about the value of repeating it here (just duplication that can get out of sync?)

pyogrio/_io.pyx Outdated
ogr_layer : OGRLayerH
The open OGR layer
skip_features : int
The number of features to skip from the beginning of the layer
Copy link
Member

Choose a reason for hiding this comment

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

"beginning of the layer" is misleading here (compared to "available range" what was written before), since this might not actually be the beginning of the layer if another filter is applied

pyogrio/_io.pyx Outdated
n_fields : int
The number of fields in the feature
field_data : object
The array where field data is stored
Copy link
Member

Choose a reason for hiding this comment

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

list of arrays?

pyogrio/_io.pyx Outdated
field_ogr_types : object
An array with the OGR types for each field
encoding : object
The encoding to use for reading field data
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
The encoding to use for reading field data
The encoding to use for reading string field data

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.

2 participants