Method: pylint.config.deprecation_actions._NewNamesAction.__call__
Calls: 1, Exceptions: 0, Paths: 1Back
Path 1: 1 calls (1.0)
ArgumentParser (1)
Namespace (1)
[True] (1)
'--ignore-mixin-members' (1)
1def __call__(
2 self,
3 parser: argparse.ArgumentParser,
4 namespace: argparse.Namespace,
5 values: str | Sequence[Any] | None,
6 option_string: str | None = None,
7 ) -> None:
8 assert isinstance(values, list)
9 setattr(namespace, self.dest, values[0])
10 warnings.warn(
11 f"{self.option_strings[0]} has been deprecated. Please look into "
12 f"using any of the following options: {', '.join(self.new_names)}.",
13 DeprecationWarning,
14 )