Skip to content

Commit

Permalink
Remove redundant if check
Browse files Browse the repository at this point in the history
  • Loading branch information
NeevCohen committed Dec 19, 2023
1 parent ab9ae9f commit f5de0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydantic/_internal/_constructor_signature_generators.py
Expand Up @@ -52,7 +52,7 @@ def generate_pydantic_signature(
for param in islice(present_params, 1, None): # skip self arg
# inspect does "clever" things to show annotations as strings because we have
# `from __future__ import annotations` in main, we don't want that
if fields.get(param.name) and isinstance(fields[param.name].alias, str):
if fields.get(param.name):
param_name = _field_name_or_alias(param.name, fields[param.name])
param = param.replace(name=param_name)
if param.annotation == 'Any':
Expand Down

0 comments on commit f5de0da

Please sign in to comment.