about summary refs log tree commit diff
path: root/.venv/lib/python3.12/site-packages/yaml-stubs/nodes.pyi
diff options
context:
space:
mode:
Diffstat (limited to '.venv/lib/python3.12/site-packages/yaml-stubs/nodes.pyi')
-rw-r--r--.venv/lib/python3.12/site-packages/yaml-stubs/nodes.pyi32
1 files changed, 32 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/yaml-stubs/nodes.pyi b/.venv/lib/python3.12/site-packages/yaml-stubs/nodes.pyi
new file mode 100644
index 00000000..de490db9
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/yaml-stubs/nodes.pyi
@@ -0,0 +1,32 @@
+from typing import Any, ClassVar
+
+from yaml.error import Mark
+
+# Any Unions: Avoid forcing the user to check for None when they know what Node was instantiated with
+# Using generics may be overkill without support for default Generics
+# Permissive Unions could also be useful here.
+class Node:
+    tag: str
+    value: Any
+    start_mark: Mark | Any
+    end_mark: Mark | Any
+    def __init__(self, tag: str, value, start_mark: Mark | None, end_mark: Mark | None) -> None: ...
+
+class ScalarNode(Node):
+    id: ClassVar[str]
+    style: str | Any
+    def __init__(
+        self, tag: str, value, start_mark: Mark | None = None, end_mark: Mark | None = None, style: str | None = None
+    ) -> None: ...
+
+class CollectionNode(Node):
+    flow_style: bool | Any
+    def __init__(
+        self, tag: str, value, start_mark: Mark | None = None, end_mark: Mark | None = None, flow_style: bool | None = None
+    ) -> None: ...
+
+class SequenceNode(CollectionNode):
+    id: ClassVar[str]
+
+class MappingNode(CollectionNode):
+    id: ClassVar[str]