Method: pylint.config.arguments_provider._ArgumentsProvider.set_option
Calls: 2, Exceptions: 0, Paths: 1Back
Path 1: 2 calls (1.0)
'test-opt' (2)
True (2)
None (2)
None (2)
1def set_option( # pragma: no cover
2 self,
3 optname: Any,
4 value: Any,
5 action: Any = None, # pylint: disable=unused-argument
6 optdict: Any = None, # pylint: disable=unused-argument
7 ) -> None:
8 """DEPRECATED: Method called to set an option (registered in the options
9 list).
10 """
11 # TODO: 3.0: Remove deprecated method.
12 warnings.warn(
13 "set_option has been deprecated. You can use _arguments_manager.set_option "
14 "or linter.set_option to set options on the global configuration object.",
15 DeprecationWarning,
16 stacklevel=2,
17 )
18 self._arguments_manager.set_option(optname, value)