Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Dickinson committed Dec 31, 2024
1 parent b59acf9 commit 014f496
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/meshapi/admin/models/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Meta:
"status": InstallStatusWidget(),
}

def __init__(self, *args, **kwargs):
def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
self.fields["status"].widget.form_instance = self

Expand Down
4 changes: 4 additions & 0 deletions src/meshapi/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,7 @@ def get_context(self, name: str, value: str, attrs: Optional[dict] = None) -> di
context["auto_populate_source"] = self.source
context["auto_populate_url"] = self.source
return context


# Down here to resolve circular imports
from meshapi.admin.models.install import InstallAdminForm # noqa: E402

0 comments on commit 014f496

Please sign in to comment.