From 273605f859e33ce887385b3dc062fdf9f491424d Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 8 Nov 2022 09:55:48 -0500 Subject: Fix since annotation for str "in" operator --- mesonbuild/interpreter/primitives/string.py | 4 ++-- 1 file 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 -- cgit v1.1