Skip to content

Commit b093a80

Browse files
committed
formating
1 parent 8fdba74 commit b093a80

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

src/typing_extensions.py

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4350,39 +4350,43 @@ def evaluate_forward_ref(
43504350
if isinstance(type_, ForwardRef):
43514351
if getattr(type_, "__forward_module__", True) is not None:
43524352
globals = None
4353-
return evaluate_forward_ref(type_, globals=globals, locals=locals,
4354-
type_params=type_params, owner=owner,
4355-
_recursive_guard=_recursive_guard, format=format)
4353+
return evaluate_forward_ref(
4354+
type_,
4355+
globals=globals,
4356+
locals=locals,
4357+
type_params=type_params, owner=owner,
4358+
_recursive_guard=_recursive_guard, format=format
4359+
)
43564360
if sys.version_info < (3, 9):
43574361
return typing._eval_type(
43584362
type_,
43594363
globals,
43604364
locals,
43614365
)
43624366
if sys.version_info < (3, 12, 5):
4363-
return typing._eval_type(
4364-
type_,
4365-
globals,
4366-
locals,
4367-
recursive_guard=_recursive_guard | {forward_ref.__forward_arg__},
4368-
)
4369-
if sys.version_info < (3, 14):
43704367
return typing._eval_type(
43714368
type_,
43724369
globals,
43734370
locals,
4374-
type_params,
43754371
recursive_guard=_recursive_guard | {forward_ref.__forward_arg__},
43764372
)
4377-
return typing._eval_type(
4373+
if sys.version_info < (3, 14):
4374+
return typing._eval_type(
43784375
type_,
43794376
globals,
43804377
locals,
43814378
type_params,
43824379
recursive_guard=_recursive_guard | {forward_ref.__forward_arg__},
4383-
format=format,
4384-
owner=owner,
43854380
)
4381+
return typing._eval_type(
4382+
type_,
4383+
globals,
4384+
locals,
4385+
type_params,
4386+
recursive_guard=_recursive_guard | {forward_ref.__forward_arg__},
4387+
format=format,
4388+
owner=owner,
4389+
)
43864390

43874391

43884392
# Aliases for items that have always been in typing.

0 commit comments

Comments
 (0)