Skip to content

Commit 6a43f32

Browse files
committed
Add more missing Raises sections.
1 parent 3edffc0 commit 6a43f32

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

referencing/_core.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ def from_contents(
6060
) -> Resource[D]:
6161
"""
6262
Attempt to discern which specification applies to the given contents.
63+
64+
Raises:
65+
66+
`CannotDetermineSpecification`
67+
68+
if the given contents don't have any discernible
69+
information which could be used to guess which
70+
specification they identify as
6371
"""
6472
specification = default_specification
6573
if isinstance(contents, Mapping):

referencing/jsonschema.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ def specification_with(
6565
) -> Specification[Any]:
6666
"""
6767
Retrieve the `Specification` with the given dialect identifier.
68+
69+
Raises:
70+
71+
`UnknownDialect`
72+
73+
if the given ``dialect_id`` isn't known
6874
"""
6975
resource = _SPECIFICATIONS.get(dialect_id)
7076
if resource is not None:

0 commit comments

Comments
 (0)