mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 14:01:56 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
from typing import Any, Callable, Dict, Iterator, List, Optional
|
||||
|
||||
from django.db.backends.sqlite3.base import (DatabaseWrapper,
|
||||
SQLiteCursorWrapper)
|
||||
from django.db.backends.sqlite3.base import DatabaseWrapper, SQLiteCursorWrapper
|
||||
from django.db.backends.sqlite3.schema import DatabaseSchemaEditor
|
||||
from django.db.backends.utils import CursorDebugWrapper, CursorWrapper
|
||||
from django.db.utils import DatabaseErrorWrapper
|
||||
@@ -46,12 +45,7 @@ class BaseDatabaseWrapper:
|
||||
features: Any = ...
|
||||
introspection: Any = ...
|
||||
validation: Any = ...
|
||||
def __init__(
|
||||
self,
|
||||
settings_dict: Dict[str, Dict[str, str]],
|
||||
alias: str = ...,
|
||||
allow_thread_sharing: bool = ...,
|
||||
) -> None: ...
|
||||
def __init__(self, settings_dict: Dict[str, Dict[str, str]], alias: str = ..., allow_thread_sharing: bool = ...) -> None: ...
|
||||
def ensure_timezone(self) -> bool: ...
|
||||
def timezone(self): ...
|
||||
def timezone_name(self): ...
|
||||
@@ -75,11 +69,7 @@ class BaseDatabaseWrapper:
|
||||
def savepoint_commit(self, sid: str) -> None: ...
|
||||
def clean_savepoints(self) -> None: ...
|
||||
def get_autocommit(self) -> bool: ...
|
||||
def set_autocommit(
|
||||
self,
|
||||
autocommit: bool,
|
||||
force_begin_transaction_with_broken_autocommit: bool = ...,
|
||||
) -> None: ...
|
||||
def set_autocommit(self, autocommit: bool, force_begin_transaction_with_broken_autocommit: bool = ...) -> None: ...
|
||||
def get_rollback(self) -> bool: ...
|
||||
def set_rollback(self, rollback: bool) -> None: ...
|
||||
def validate_no_atomic_block(self) -> None: ...
|
||||
@@ -94,17 +84,11 @@ class BaseDatabaseWrapper:
|
||||
def prepare_database(self) -> None: ...
|
||||
def wrap_database_errors(self) -> DatabaseErrorWrapper: ...
|
||||
def chunked_cursor(self) -> CursorWrapper: ...
|
||||
def make_debug_cursor(
|
||||
self, cursor: SQLiteCursorWrapper
|
||||
) -> CursorDebugWrapper: ...
|
||||
def make_debug_cursor(self, cursor: SQLiteCursorWrapper) -> CursorDebugWrapper: ...
|
||||
def make_cursor(self, cursor: SQLiteCursorWrapper) -> CursorWrapper: ...
|
||||
def temporary_connection(self) -> None: ...
|
||||
def schema_editor(
|
||||
self, *args: Any, **kwargs: Any
|
||||
) -> DatabaseSchemaEditor: ...
|
||||
def schema_editor(self, *args: Any, **kwargs: Any) -> DatabaseSchemaEditor: ...
|
||||
def on_commit(self, func: Callable) -> None: ...
|
||||
def run_and_clear_commit_hooks(self) -> None: ...
|
||||
def execute_wrapper(self, wrapper: Callable) -> Iterator[None]: ...
|
||||
def copy(
|
||||
self, alias: None = ..., allow_thread_sharing: None = ...
|
||||
) -> DatabaseWrapper: ...
|
||||
def copy(self, alias: None = ..., allow_thread_sharing: None = ...) -> DatabaseWrapper: ...
|
||||
|
||||
Reference in New Issue
Block a user