Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ManifestStaticFilesStorage new parameters #1528

Merged
merged 2 commits into from Jun 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions django-stubs/contrib/staticfiles/storage.pyi
Expand Up @@ -20,6 +20,7 @@ class StaticFilesStorage(FileSystemStorage):
class HashedFilesMixin:
default_template: str
max_post_process_passes: int
support_js_module_import_aggregation: bool
patterns: Any
hashed_files: Any
keep_intermediate_files: bool
Expand All @@ -38,11 +39,14 @@ class ManifestFilesMixin(HashedFilesMixin):
manifest_name: str
manifest_strict: bool
keep_intermediate_files: bool
manifest_storage: Storage | None
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
def read_manifest(self) -> str: ...
def load_manifest(self) -> dict[str, Any]: ...
def save_manifest(self) -> None: ...
hashed_files: dict[str, str]
def post_process(self, *args: Any, **kwargs: Any) -> _PostProcessT: ...
manifest_hash: str
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: let's move these props to the top

def stored_name(self, name: str) -> str: ...

class ManifestStaticFilesStorage(ManifestFilesMixin, StaticFilesStorage): ... # type: ignore
Expand Down