diff options
author | Théo de la Hogue | 2024-01-10 16:19:39 +0100 |
---|---|---|
committer | Théo de la Hogue | 2024-01-10 16:19:39 +0100 |
commit | f465a5be46f18d6df66c7cca90275d412c5ea1fe (patch) | |
tree | cf9e6ddaeea0d0ddd807239c6586a1dbc40eb6a5 /src | |
parent | cd74c746987cc748d4ca5f41448d59254bf0b6ff (diff) | |
download | argaze-f465a5be46f18d6df66c7cca90275d412c5ea1fe.zip argaze-f465a5be46f18d6df66c7cca90275d412c5ea1fe.tar.gz argaze-f465a5be46f18d6df66c7cca90275d412c5ea1fe.tar.bz2 argaze-f465a5be46f18d6df66c7cca90275d412c5ea1fe.tar.xz |
Adding annotation for __or__, __ror__ and __ior__ operators.
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/AreaOfInterest/AOIFeatures.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/argaze/AreaOfInterest/AOIFeatures.py b/src/argaze/AreaOfInterest/AOIFeatures.py index 5637baa..77a92fd 100644 --- a/src/argaze/AreaOfInterest/AOIFeatures.py +++ b/src/argaze/AreaOfInterest/AOIFeatures.py @@ -357,6 +357,7 @@ class AOIScene(): delattr(self, key) def __or__(self, other): + """Merge another scene using | operator.""" assert(other.dimension == self.__dimension) @@ -366,6 +367,7 @@ class AOIScene(): return AOIScene(self.dimension, merged_areas) def __ror__(self, other): + """Merge another scene using | operator.""" assert(other.dimension == self.__dimension) @@ -375,6 +377,7 @@ class AOIScene(): return AOIScene(self.dimension, merged_areas) def __ior__(self, other): + """Merge scene with another scene in-place using |= operator.""" assert(other.dimension == self.__dimension) |