summaryrefslogtreecommitdiffstats
path: root/src/prompt_toolkit/data_structures.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/prompt_toolkit/data_structures.py')
-rw-r--r--src/prompt_toolkit/data_structures.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/prompt_toolkit/data_structures.py b/src/prompt_toolkit/data_structures.py
new file mode 100644
index 0000000..27dd458
--- /dev/null
+++ b/src/prompt_toolkit/data_structures.py
@@ -0,0 +1,18 @@
+from __future__ import annotations
+
+from typing import NamedTuple
+
+__all__ = [
+ "Point",
+ "Size",
+]
+
+
+class Point(NamedTuple):
+ x: int
+ y: int
+
+
+class Size(NamedTuple):
+ rows: int
+ columns: int