Skip to content

Commit 80359a1

Browse files
Fix indent error
1 parent 7838906 commit 80359a1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

mypy/checkexpr.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4028,18 +4028,17 @@ def is_valid_var_arg(self, typ: Type) -> bool:
40284028
def is_valid_keyword_var_arg(self, typ: Type) -> bool:
40294029
"""Is a type valid as a **kwargs argument?"""
40304030
mapping_type = self.chk.named_generic_type(
4031-
'typing.Mapping', [self.named_type('builtins.str'), AnyType(TypeOfAny.special_form)])
4031+
'typing.Mapping', [self.named_type('builtins.str'), AnyType(TypeOfAny.special_form)])
40324032
typ = get_proper_type(typ)
40334033

40344034
ret = (
40354035
is_subtype(typ, mapping_type) or
4036-
is_subtype(typ, self.chk.named_generic_type('typing.Mapping',
4037-
[UninhabitedType(), UninhabitedType()])) or
40384036
(isinstance(typ, Instance) and
40394037
is_subtype(typ, self.chk.named_type('typing.Mapping')) and
40404038
try_getting_str_literals_from_type(map_instance_to_supertype(
4041-
typ, mapping_type.type).args[0]) is not None
4042-
) or
4039+
typ, mapping_type.type).args[0]) is not None) or
4040+
is_subtype(typ, self.chk.named_generic_type('typing.Mapping',
4041+
[UninhabitedType(), UninhabitedType()])) or
40434042
isinstance(typ, ParamSpecType)
40444043
)
40454044
if self.chk.options.python_version[0] < 3:

0 commit comments

Comments
 (0)