mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-14 15:57:08 +08:00
initial commit
This commit is contained in:
24
django/contrib/staticfiles/utils.pyi
Normal file
24
django/contrib/staticfiles/utils.pyi
Normal file
@@ -0,0 +1,24 @@
|
||||
from collections import OrderedDict
|
||||
from django.core.files.storage import (
|
||||
DefaultStorage,
|
||||
FileSystemStorage,
|
||||
)
|
||||
from typing import (
|
||||
Iterator,
|
||||
List,
|
||||
Tuple,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
def check_settings(base_url: str = ...) -> None: ...
|
||||
|
||||
|
||||
def get_files(
|
||||
storage: Union[FileSystemStorage, DefaultStorage],
|
||||
ignore_patterns: List[str] = ...,
|
||||
location: str = ...
|
||||
) -> Iterator[str]: ...
|
||||
|
||||
|
||||
def matches_patterns(path: str, patterns: Union[OrderedDict, Tuple[str], List[str]] = ...) -> bool: ...
|
||||
Reference in New Issue
Block a user