Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hyukychang committed Apr 22, 2024
1 parent 4eff0f4 commit 940aa8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ara/domain/ara_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def set_attribute(self, field_name: str, value: Any):
self._updated_fields.add(field_name)

def __setattr__(self, name: str, value: Any) -> None:
is_private_field = name.startswith("_") or name.startswith("_")
is_private_field = name.startswith("_") or name.startswith("__")
if is_private_field is False:
self._updated_fields.add(name)
return super().__setattr__(name, value)
Expand Down
4 changes: 2 additions & 2 deletions ara/infra/django_infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_filtered_objects(
columns: list[str] | None = None,
conditions: dict[str, Any],
is_select_for_update: bool = False,
) -> list[Union[T, dict[str, Any]]]:
) -> list[T | dict[str, Any]]:
"""
Generic function for simple queries.
Should not be used for complex & specific purpose queries.
Expand All @@ -48,7 +48,7 @@ def get_filtered_objects(
Set True if get queryset for update purpose. Defaults to False.
Returns:
List[Union[T, Dict[str, Any]]]:
List[T | Dict[str, Any]]:
A list containing the matching object,
with only the specified columns if `columns` is not None.
Expand Down

0 comments on commit 940aa8c

Please sign in to comment.