File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1636,13 +1636,13 @@ def anytype() -> mypy.types.AnyType:
16361636 arg_names .append (
16371637 None if arg .kind == inspect .Parameter .POSITIONAL_ONLY else arg .name
16381638 )
1639- has_default = arg .default is inspect .Parameter .empty
1639+ no_default = arg .default is inspect .Parameter .empty
16401640 if arg .kind == inspect .Parameter .POSITIONAL_ONLY :
1641- arg_kinds .append (nodes .ARG_POS if has_default else nodes .ARG_OPT )
1641+ arg_kinds .append (nodes .ARG_POS if no_default else nodes .ARG_OPT )
16421642 elif arg .kind == inspect .Parameter .POSITIONAL_OR_KEYWORD :
1643- arg_kinds .append (nodes .ARG_POS if has_default else nodes .ARG_OPT )
1643+ arg_kinds .append (nodes .ARG_POS if no_default else nodes .ARG_OPT )
16441644 elif arg .kind == inspect .Parameter .KEYWORD_ONLY :
1645- arg_kinds .append (nodes .ARG_NAMED if has_default else nodes .ARG_NAMED_OPT )
1645+ arg_kinds .append (nodes .ARG_NAMED if no_default else nodes .ARG_NAMED_OPT )
16461646 elif arg .kind == inspect .Parameter .VAR_POSITIONAL :
16471647 arg_kinds .append (nodes .ARG_STAR )
16481648 elif arg .kind == inspect .Parameter .VAR_KEYWORD :
You can’t perform that action at this time.
0 commit comments