We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cc4196 commit 81ce477Copy full SHA for 81ce477
mypy/checker.py
@@ -6253,8 +6253,10 @@ def conditional_callable_type_map(
6253
# Narrow Any to a generic callable type to satisfy no-any-return in strict mode.
6254
return {
6255
expr: CallableType(
6256
- [AnyType(TypeOfAny.from_another_any, source_any=current_type),
6257
- AnyType(TypeOfAny.from_another_any, source_any=current_type)],
+ [
+ AnyType(TypeOfAny.from_another_any, source_any=current_type),
6258
6259
+ ],
6260
[nodes.ARG_STAR, nodes.ARG_STAR2],
6261
[None, None],
6262
ret_type=AnyType(TypeOfAny.from_another_any, source_any=current_type),
0 commit comments