aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2022-11-08 09:55:48 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2022-11-08 20:48:32 +0200
commit273605f859e33ce887385b3dc062fdf9f491424d (patch)
treeafc9984944416bfd2a96da13423f78115d5da2cd
parentbcc127b3fd416f97928f72d35c1a731fb3acc91a (diff)
downloadmeson-273605f859e33ce887385b3dc062fdf9f491424d.zip
meson-273605f859e33ce887385b3dc062fdf9f491424d.tar.gz
meson-273605f859e33ce887385b3dc062fdf9f491424d.tar.bz2
Fix since annotation for str "in" operator
-rw-r--r--mesonbuild/interpreter/primitives/string.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/interpreter/primitives/string.py b/mesonbuild/interpreter/primitives/string.py
index d8133c1..d9f6a06 100644
--- a/mesonbuild/interpreter/primitives/string.py
+++ b/mesonbuild/interpreter/primitives/string.py
@@ -175,12 +175,12 @@ class StringHolder(ObjectHolder[str]):
except IndexError:
raise InvalidArguments(f'Index {other} out of bounds of string of size {len(self.held_object)}.')
- @FeatureNew('"in" string operator', '0.64.0')
+ @FeatureNew('"in" string operator', '1.0.0')
@typed_operator(MesonOperator.IN, str)
def op_in(self, other: str) -> bool:
return other in self.held_object
- @FeatureNew('"not in" string operator', '0.64.0')
+ @FeatureNew('"not in" string operator', '1.0.0')
@typed_operator(MesonOperator.NOT_IN, str)
def op_notin(self, other: str) -> bool:
return other not in self.held_object