Skip to content

Commit 6b32557

Browse files
committed
Rename has_default to no_default
1 parent bce69d1 commit 6b32557

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mypy/stubtest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)