Skip to content

Bring the README, docstrings and AGENTS.md up to date - #1587

Merged
frenck merged 1 commit into
mainfrom
frenck/docs-round-three
Oct 1, 2026
Merged

frenck merged 1 commit into
mainfrom
frenck/docs-round-three

Conversation

@frenck

@frenck frenck commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Breaking change

None. Documentation only.

Proposed change

Found in a third review of the library, after the latest additions.

  • README: "Every list method takes order, reverse, limit, offset and hide_broken" was no longer true: stations_by_uuid() or checks(offset=...) raise a TypeError. It now names the lists that take them.
  • README: close() was not documented. It now explains when to call it, and that a closed client can still be used.
  • Docstrings: seconds on checks() and clicks() did not say that zero means no time limit, which is how the API treats it.
  • AGENTS.md: the gotchas still described how countries() sorted before Sort and page countries by their name #1568 and Count countries with a lowercase code only once #1574, and const.py as only holding the two enums. The gotchas now also cover the API's own country names for states, the supported orders per endpoint, and escaping of path segments. The example is no longer described as using every public method; the README is where every method is documented.

Type of change

  • Dependency or tooling upgrade
  • Bugfix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Deprecation (replaces or removes a feature, with a migration path)
  • Breaking change (a fix or feature that changes existing behavior)
  • Code quality, refactor, or test-only change
  • Documentation only

Additional information

  • This PR fixes or closes issue: fixes # None
  • This PR is related to: None
  • Link to a separate documentation pull request: None

Checklist

  • I fully understand the code in this pull request and can explain every line, including any AI-assisted changes.
  • The change is covered by tests, and poetry run pytest passes locally. A pull request cannot be merged unless CI is green.
  • poetry run prek run --all-files passes (lint, format, and type checks).
  • No commented-out or dead code is left in the pull request.

Fix the claim that every list method takes the paging arguments, document
close() and seconds=0, and update the gotchas in AGENTS.md.
@frenck frenck added the documentation Solely about the documentation of the project. label Oct 1, 2026
@frenck
frenck merged commit 64c27cc into main Oct 1, 2026
31 checks passed
@frenck
frenck deleted the frenck/docs-round-three branch October 1, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Solely about the documentation of the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant