From d94b7b0c6a769533c47ee24ea1856a75e4d4a773 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Fri, 16 Aug 2019 15:45:07 +0300 Subject: [PATCH] Fixes collectstatic storage type, closes #130 (#131) --- .../staticfiles/management/commands/collectstatic.pyi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/django-stubs/contrib/staticfiles/management/commands/collectstatic.pyi b/django-stubs/contrib/staticfiles/management/commands/collectstatic.pyi index 49ad344..cfad24b 100644 --- a/django-stubs/contrib/staticfiles/management/commands/collectstatic.pyi +++ b/django-stubs/contrib/staticfiles/management/commands/collectstatic.pyi @@ -1,6 +1,6 @@ from typing import Any, Dict, List -from django.core.files.storage import FileSystemStorage +from django.core.files.storage import Storage from django.core.management.base import BaseCommand class Command(BaseCommand): @@ -23,6 +23,6 @@ class Command(BaseCommand): def log(self, msg: str, level: int = ...) -> None: ... def is_local_storage(self) -> bool: ... def clear_dir(self, path: str) -> None: ... - def delete_file(self, path: str, prefixed_path: str, source_storage: FileSystemStorage) -> bool: ... - def link_file(self, path: str, prefixed_path: str, source_storage: FileSystemStorage) -> None: ... - def copy_file(self, path: str, prefixed_path: str, source_storage: FileSystemStorage) -> None: ... + def delete_file(self, path: str, prefixed_path: str, source_storage: Storage) -> bool: ... + def link_file(self, path: str, prefixed_path: str, source_storage: Storage) -> None: ... + def copy_file(self, path: str, prefixed_path: str, source_storage: Storage) -> None: ...