File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,14 @@ def from_contents(
60
60
) -> Resource [D ]:
61
61
"""
62
62
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
63
71
"""
64
72
specification = default_specification
65
73
if isinstance (contents , Mapping ):
Original file line number Diff line number Diff line change @@ -65,6 +65,12 @@ def specification_with(
65
65
) -> Specification [Any ]:
66
66
"""
67
67
Retrieve the `Specification` with the given dialect identifier.
68
+
69
+ Raises:
70
+
71
+ `UnknownDialect`
72
+
73
+ if the given ``dialect_id`` isn't known
68
74
"""
69
75
resource = _SPECIFICATIONS .get (dialect_id )
70
76
if resource is not None :
You can’t perform that action at this time.
0 commit comments