Repository navigation
Bring the README, docstrings and AGENTS.md up to date - #1587
Merged
Merged
Conversation
Fix the claim that every list method takes the paging arguments, document close() and seconds=0, and update the gotchas in AGENTS.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Breaking change
None. Documentation only.
Proposed change
Found in a third review of the library, after the latest additions.
order,reverse,limit,offsetandhide_broken" was no longer true:stations_by_uuid()orchecks(offset=...)raise aTypeError. It now names the lists that take them.close()was not documented. It now explains when to call it, and that a closed client can still be used.secondsonchecks()andclicks()did not say that zero means no time limit, which is how the API treats it.countries()sorted before Sort and page countries by their name #1568 and Count countries with a lowercase code only once #1574, andconst.pyas 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
Additional information
Checklist
poetry run pytestpasses locally. A pull request cannot be merged unless CI is green.poetry run prek run --all-filespasses (lint, format, and type checks).