From 99a2da365e1bbe91df05f0e9c1924fe8a800b60e Mon Sep 17 00:00:00 2001 From: Rin204 <0204rinsaiki@gmail.com> Date: Tue, 14 Nov 2023 21:53:27 +0900 Subject: [PATCH] add NotImplementedError --- expansion/$tests/data_structure/lazysegtree2.test.py | 10 +++++----- expansion/$tests/data_structure/segtree2.test.py | 4 ++-- expansion/$tests/data_structure/segtree3.test.py | 4 ++-- .../$tests/data_structure/segtree_bisect2.test.py | 4 ++-- expansion/data_structure/LazySegmentTreeBase_.py | 10 +++++----- expansion/data_structure/SegmentTreeBase_.py | 4 ++-- expansion/data_structure/segtree_/PointAddRangeSum.py | 4 ++-- src/data_structure/LazySegmentTreeBase_.py | 10 +++++----- src/data_structure/SegmentTreeBase_.py | 4 ++-- 9 files changed, 27 insertions(+), 27 deletions(-) diff --git a/expansion/$tests/data_structure/lazysegtree2.test.py b/expansion/$tests/data_structure/lazysegtree2.test.py index 037f1a3..fc58b47 100644 --- a/expansion/$tests/data_structure/lazysegtree2.test.py +++ b/expansion/$tests/data_structure/lazysegtree2.test.py @@ -7,19 +7,19 @@ class LazySegmentTreeBase_: def ope(self, l, r): - return None + raise NotImplementedError def e(self): - return None + raise NotImplementedError def mapping(self, f, x): - return None + raise NotImplementedError def composition(self, f, g): - return None + raise NotImplementedError def id_(self): - return None + raise NotImplementedError def __init__(self, n, init=None): self.n = n diff --git a/expansion/$tests/data_structure/segtree2.test.py b/expansion/$tests/data_structure/segtree2.test.py index bcf3c78..6026697 100644 --- a/expansion/$tests/data_structure/segtree2.test.py +++ b/expansion/$tests/data_structure/segtree2.test.py @@ -8,10 +8,10 @@ class SegmentTreeBase_: def ope(self, l, r): - return None + raise NotImplementedError def e(self): - return None + raise NotImplementedError def __init__(self, n, init=None): self.n = n diff --git a/expansion/$tests/data_structure/segtree3.test.py b/expansion/$tests/data_structure/segtree3.test.py index 0465c56..5c4ca88 100644 --- a/expansion/$tests/data_structure/segtree3.test.py +++ b/expansion/$tests/data_structure/segtree3.test.py @@ -8,10 +8,10 @@ class SegmentTreeBase_: def ope(self, l, r): - return None + raise NotImplementedError def e(self): - return None + raise NotImplementedError def __init__(self, n, init=None): self.n = n diff --git a/expansion/$tests/data_structure/segtree_bisect2.test.py b/expansion/$tests/data_structure/segtree_bisect2.test.py index 67ca4bd..25316e4 100644 --- a/expansion/$tests/data_structure/segtree_bisect2.test.py +++ b/expansion/$tests/data_structure/segtree_bisect2.test.py @@ -10,10 +10,10 @@ class SegmentTreeBase_: def ope(self, l, r): - return None + raise NotImplementedError def e(self): - return None + raise NotImplementedError def __init__(self, n, init=None): self.n = n diff --git a/expansion/data_structure/LazySegmentTreeBase_.py b/expansion/data_structure/LazySegmentTreeBase_.py index f6145eb..7ba06e9 100644 --- a/expansion/data_structure/LazySegmentTreeBase_.py +++ b/expansion/data_structure/LazySegmentTreeBase_.py @@ -1,18 +1,18 @@ class LazySegmentTreeBase_: def ope(self, l, r): - return None + raise NotImplementedError def e(self): - return None + raise NotImplementedError def mapping(self, f, x): - return None + raise NotImplementedError def composition(self, f, g): - return None + raise NotImplementedError def id_(self): - return None + raise NotImplementedError def __init__(self, n, init=None): self.n = n diff --git a/expansion/data_structure/SegmentTreeBase_.py b/expansion/data_structure/SegmentTreeBase_.py index 3df38fc..b547406 100644 --- a/expansion/data_structure/SegmentTreeBase_.py +++ b/expansion/data_structure/SegmentTreeBase_.py @@ -1,9 +1,9 @@ class SegmentTreeBase_: def ope(self, l, r): - return None + raise NotImplementedError def e(self): - return None + raise NotImplementedError def __init__(self, n, init=None): self.n = n diff --git a/expansion/data_structure/segtree_/PointAddRangeSum.py b/expansion/data_structure/segtree_/PointAddRangeSum.py index 8437fa7..1fded51 100644 --- a/expansion/data_structure/segtree_/PointAddRangeSum.py +++ b/expansion/data_structure/segtree_/PointAddRangeSum.py @@ -1,9 +1,9 @@ class SegmentTreeBase_: def ope(self, l, r): - return None + raise NotImplementedError def e(self): - return None + raise NotImplementedError def __init__(self, n, init=None): self.n = n diff --git a/src/data_structure/LazySegmentTreeBase_.py b/src/data_structure/LazySegmentTreeBase_.py index f6145eb..7ba06e9 100755 --- a/src/data_structure/LazySegmentTreeBase_.py +++ b/src/data_structure/LazySegmentTreeBase_.py @@ -1,18 +1,18 @@ class LazySegmentTreeBase_: def ope(self, l, r): - return None + raise NotImplementedError def e(self): - return None + raise NotImplementedError def mapping(self, f, x): - return None + raise NotImplementedError def composition(self, f, g): - return None + raise NotImplementedError def id_(self): - return None + raise NotImplementedError def __init__(self, n, init=None): self.n = n diff --git a/src/data_structure/SegmentTreeBase_.py b/src/data_structure/SegmentTreeBase_.py index 3df38fc..b547406 100644 --- a/src/data_structure/SegmentTreeBase_.py +++ b/src/data_structure/SegmentTreeBase_.py @@ -1,9 +1,9 @@ class SegmentTreeBase_: def ope(self, l, r): - return None + raise NotImplementedError def e(self): - return None + raise NotImplementedError def __init__(self, n, init=None): self.n = n