Skip to content

Commit

Permalink
remove useless kwarg that was never used
Browse files Browse the repository at this point in the history
I am not sure why it ever got added. It looks superficially similar to
FeatureCheck itself, but doesn't need to.
  • Loading branch information
eli-schwartz authored and dcbaker committed Mar 1, 2022
1 parent 6acfe48 commit 2b04e8c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mesonbuild/interpreterbase/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,12 +749,11 @@ def feature_check_class(self) -> T.Type[FeatureCheckBase]:
pass

def __init__(self, feature_name: str, feature_version: str,
kwargs: T.List[str], extra_message: T.Optional[str] = None, location: T.Optional['mparser.BaseNode'] = None):
kwargs: T.List[str], extra_message: T.Optional[str] = None):
self.feature_name = feature_name
self.feature_version = feature_version
self.kwargs = kwargs
self.extra_message = extra_message
self.location = location

def __call__(self, f: TV_func) -> TV_func:
@wraps(f)
Expand Down

0 comments on commit 2b04e8c

Please sign in to comment.