Skip to content

Fix Resource.anchors docstring: it returns anchors, not the identifier#358

Merged
Julian merged 1 commit into
python-jsonschema:mainfrom
c-tonneslan:docs/anchors-docstring
May 24, 2026
Merged

Fix Resource.anchors docstring: it returns anchors, not the identifier#358
Julian merged 1 commit into
python-jsonschema:mainfrom
c-tonneslan:docs/anchors-docstring

Conversation

@c-tonneslan
Copy link
Copy Markdown
Contributor

The docstring on Resource.anchors got copy-pasted from Resource.id() just above it: "Retrieve this resource's (specification-specific) identifier". The method returns anchors, not the identifier.

The docstring was copy-pasted from Resource.id() right above. The
method returns anchors (plural), not the identifier.

Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
@Julian
Copy link
Copy Markdown
Member

Julian commented May 24, 2026

Thanks!

@Julian Julian merged commit d8e4f5e into python-jsonschema:main May 24, 2026
57 checks passed
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