Skip to content

Commit

Permalink
docs: add documentation about the type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
MaferMazu committed Aug 26, 2024
1 parent f03da32 commit 26fb79a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tutorpicasso/commands/enable_themes.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def enable_themes() -> None:
if not tutor_conf.get("PICASSO_THEMES"):
return

# We use `type: ignore` for the `tutor_conf` object
# because it comes from the Tutor framework.
# We are not handle type errors related to this object.
for theme in tutor_conf["PICASSO_THEMES"]: # type: ignore
if not {"name", "repo", "version"}.issubset(theme.keys()): # type: ignore
raise click.ClickException(
Expand Down

0 comments on commit 26fb79a

Please sign in to comment.