We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6c02b6 commit 8a5e049Copy full SHA for 8a5e049
tests/functional/u/unexpected_keyword_arg.py
@@ -146,11 +146,20 @@ def ambiguous_func5(arg1=input):
146
print(arg1)
147
148
149
+def ambiguous_func6(arg1=42):
150
+ print(arg1)
151
+
152
153
# Two functions with same keyword argument but different defaults (names)
-func6 = ambiguous_func4 if unknown else ambiguous_func5
-func6()
154
+func3 = ambiguous_func4 if unknown else ambiguous_func5
155
+func3()
156
157
158
+# Two functions with same keyword argument but different defaults (constants)
159
+func4 = ambiguous_func3 if unknown else ambiguous_func6
160
+func4()
161
162
163
# Two functions with same keyword argument but mixed defaults (names, constant)
-func7 = ambiguous_func3 if unknown else ambiguous_func5
-func7()
164
+func5 = ambiguous_func3 if unknown else ambiguous_func5
165
+func5()
0 commit comments