diff options
Diffstat (limited to 'python/src/types/buffer.py')
| -rw-r--r-- | python/src/types/buffer.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/python/src/types/buffer.py b/python/src/types/buffer.py deleted file mode 100644 index 04e1def..0000000 --- a/python/src/types/buffer.py +++ /dev/null @@ -1,16 +0,0 @@ -from dataclasses import dataclass - -@dataclass -class Buffer: - content: str - - @property - def min_pos(self) -> int: - return 0 - - @property - def max_pos(self) -> int: - return len(self.content) - - def valid_pos(self, pos : int) -> bool: - return self.min_pos <= pos < self.max_pos |
