Method: pylint.config.argument._DeprecationArgument.__init__
Calls: 4267, Exceptions: 0, Paths: 1Back
Path 1: 4267 calls (1.0)
['--ignore'] (1518) ['--ignore-patterns'] (1488) ['--ignore-mixin-members'] (1141) ['--filter-mode', '-f'] (30) ['--class', '-c'] (30) ['--output', '-...
_OldNamesAction def (3096) _NewNamesAction def (1141) _ExtendAction def (30)
('CVS',) (1518) tuple (1488) True (1141) 'PUB_ONLY' (30) [] (30) 'dot' (30) 2 (30)
'csv' (1548) 'regexp_csv' (1488) 'yn' (1141) 'string' (60) 'int' (30)
None (4267)
'Files or directories to be skipped. They should be base names, not paths.' (1518) 'Files or directories matching the regular expression patterns are ...
' False (4267) None (4267)
1def __init__(
2 self,
3 *,
4 flags: list[str],
5 action: type[argparse.Action],
6 default: _ArgumentTypes,
7 arg_type: str,
8 choices: list[str] | None,
9 arg_help: str,
10 metavar: str,
11 hide_help: bool,
12 section: str | None,
13 ) -> None:
14 super().__init__(
15 flags=flags, arg_help=arg_help, hide_help=hide_help, section=section
16 )
17
18 self.action = action
19 """The action to perform with the argument."""
20
21 self.default = default
22 """The default value of the argument."""
23
24 self.type = _TYPE_TRANSFORMERS[arg_type]
25 """A transformer function that returns a transformed type of the argument."""
26
27 self.choices = choices
28 """A list of possible choices for the argument.
29
30 None if there are no restrictions.
31 """
32
33 self.metavar = metavar
34 """The metavar of the argument.
35
36 See:
37 https://docs.python.org/3/library/argparse.html#metavar
38 """