Skip to content
Snippets Groups Projects
Commit db38be68 authored by Ladislav Lhotka's avatar Ladislav Lhotka
Browse files

Allow (None,) as a scalar value in type aliases.

parent d9da6dcd
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ InstanceIdentifier = str
ResourceIdentifier = str
"""RESTCONF resource identifier, see sec. `3.5.3`_ of [BBW16]_."""
ScalarValue = Union[int, Decimal, str]
ScalarValue = Union[int, Decimal, str, Tuple[None]]
"""Scalar value of an InstanceNode."""
QualName = Tuple[YangIdentifier, YangIdentifier]
......@@ -42,7 +42,7 @@ DataPath = str # same syntax as SchemaPath but containing only data nodes
ModuleId = Tuple[YangIdentifier, RevisionDate]
"""Module identifier: (YangIdentifier, RevisionDate)."""
RawScalar = Union[bool, int, str]
RawScalar = Union[bool, int, str, List[None]]
"""Raw scalar value as produced by JSON parser."""
RawObject = Dict[InstanceName, "RawValue"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment