Skip to content

Commit f90601c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 43d2a38 commit f90601c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

mypy/semanal_typeddict.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,17 +235,20 @@ def analyze_base_args(self, base: IndexExpr, ctx: Context) -> list[Type] | None:
235235

236236
for arg_expr in args:
237237
try:
238-
type = expr_to_unanalyzed_type(arg_expr, self.options,
239-
allow_new_syntax=self.api.is_stub_file,
240-
allow_unpack=True)
238+
type = expr_to_unanalyzed_type(
239+
arg_expr,
240+
self.options,
241+
allow_new_syntax=self.api.is_stub_file,
242+
allow_unpack=True,
243+
)
241244
except TypeTranslationError:
242245
self.fail("Invalid TypedDict type argument", ctx)
243246
return None
244247
analyzed = self.api.anal_type(
245248
type,
246249
allow_required=True,
247250
allow_unpack=True,
248-
allow_placeholder=not self.api.is_func_scope()
251+
allow_placeholder=not self.api.is_func_scope(),
249252
)
250253
if analyzed is None:
251254
return None

0 commit comments

Comments
 (0)