Skip to content

Commit b4754ed

Browse files
committed
Remove unneeded check to make sure annotation is truthy
1 parent b3ddb24 commit b4754ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_settings/sources/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def _extract_field_info(self, field: FieldInfo, field_name: str) -> list[tuple[s
356356

357357
if not v_alias or self.config.get('populate_by_name', False):
358358
annotation = field.annotation
359-
if annotation and typing_objects.is_typealiastype(annotation):
359+
if typing_objects.is_typealiastype(annotation):
360360
annotation = _strip_annotated(annotation.__value__)
361361
if is_union_origin(get_origin(annotation)) and _union_is_complex(annotation, field.metadata):
362362
field_info.append((field_name, self._apply_case_sensitive(self.env_prefix + field_name), True))

0 commit comments

Comments
 (0)