Skip to content

Commit

Permalink
Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienLelaquais committed Sep 30, 2024
1 parent 59ec32f commit 3275594
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/gui/examples/controls/table_guard_edits.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def pick_user() -> tuple[str, int]:
return (new_user, salary)
except ValueError:
# There was a back-end error
print("ERROR: Invoking the Random User Generator API")
print("ERROR: Invoking the Random User Generator API") # noqa: F401, T201
return ("ERROR", 0)
# The API cannot be reached
print("ERROR: Could not invoke the Random User Generator API")
print("ERROR: Could not invoke the Random User Generator API") # noqa: F401, T201
return ("ERROR", 0)

# Generate four random persons with their salary expectation and store them in a dictionary
Expand Down
2 changes: 1 addition & 1 deletion taipy/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2838,7 +2838,7 @@ def set_favicon(self, favicon_path: t.Union[str, Path], state: t.Optional[State]
Arguments:
favicon_path: the path to the image file to use.<br/>
This can be expressed as a path name or a URL (relative or not).
state: the
state: the state to apply the change to.
"""
if state or self.__favicon != favicon_path:
if not state:
Expand Down

0 comments on commit 3275594

Please sign in to comment.