mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 05:51:53 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -14,44 +14,27 @@ class BaseFinder:
|
||||
class FileSystemFinder(BaseFinder):
|
||||
locations: List[Any] = ...
|
||||
storages: collections.OrderedDict = ...
|
||||
def __init__(
|
||||
self, app_names: None = ..., *args: Any, **kwargs: Any
|
||||
) -> None: ...
|
||||
def __init__(self, app_names: None = ..., *args: Any, **kwargs: Any) -> None: ...
|
||||
def check(self, **kwargs: Any) -> List[Error]: ...
|
||||
def find(self, path: str, all: bool = ...) -> Union[List[str], str]: ...
|
||||
def find_location(
|
||||
self, root: str, path: str, prefix: str = ...
|
||||
) -> Optional[str]: ...
|
||||
def list(
|
||||
self, ignore_patterns: List[str]
|
||||
) -> Iterator[Tuple[str, FileSystemStorage]]: ...
|
||||
def find_location(self, root: str, path: str, prefix: str = ...) -> Optional[str]: ...
|
||||
def list(self, ignore_patterns: List[str]) -> Iterator[Tuple[str, FileSystemStorage]]: ...
|
||||
|
||||
class AppDirectoriesFinder(BaseFinder):
|
||||
storage_class: Any = ...
|
||||
source_dir: str = ...
|
||||
apps: List[str] = ...
|
||||
storages: collections.OrderedDict = ...
|
||||
def __init__(
|
||||
self, app_names: None = ..., *args: Any, **kwargs: Any
|
||||
) -> None: ...
|
||||
def list(
|
||||
self, ignore_patterns: List[str]
|
||||
) -> Iterator[Tuple[str, FileSystemStorage]]: ...
|
||||
def __init__(self, app_names: None = ..., *args: Any, **kwargs: Any) -> None: ...
|
||||
def list(self, ignore_patterns: List[str]) -> Iterator[Tuple[str, FileSystemStorage]]: ...
|
||||
def find(self, path: str, all: bool = ...) -> Union[List[str], str]: ...
|
||||
def find_in_app(self, app: str, path: str) -> Optional[str]: ...
|
||||
|
||||
class BaseStorageFinder(BaseFinder):
|
||||
storage: Any = ...
|
||||
def __init__(
|
||||
self,
|
||||
storage: Optional[StaticFilesStorage] = ...,
|
||||
*args: Any,
|
||||
**kwargs: Any
|
||||
) -> None: ...
|
||||
def __init__(self, storage: Optional[StaticFilesStorage] = ..., *args: Any, **kwargs: Any) -> None: ...
|
||||
def find(self, path: str, all: bool = ...) -> Union[List[str], str]: ...
|
||||
def list(
|
||||
self, ignore_patterns: List[str]
|
||||
) -> Iterator[Tuple[str, DefaultStorage]]: ...
|
||||
def list(self, ignore_patterns: List[str]) -> Iterator[Tuple[str, DefaultStorage]]: ...
|
||||
|
||||
class DefaultStorageFinder(BaseStorageFinder):
|
||||
storage: django.contrib.staticfiles.storage.StaticFilesStorage = ...
|
||||
|
||||
Reference in New Issue
Block a user