Fix some typos

This commit is contained in:
apple502j
2022-06-28 11:34:45 +09:00
committed by GitHub
parent 55849d996e
commit b95db674c0
4 changed files with 5 additions and 5 deletions

View File

@ -238,8 +238,8 @@ def replace_parameter(
if len(args) == 2 and args[-1] is _NoneType:
# Special case Optional[X] where X is a single type that can optionally be a converter
inner = args[0]
is_inner_tranformer = is_transformer(inner)
if is_converter(inner) and not is_inner_tranformer:
is_inner_transformer = is_transformer(inner)
if is_converter(inner) and not is_inner_transformer:
param = param.replace(annotation=Optional[make_converter_transformer(inner, original)]) # type: ignore
else:
raise