mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-01-04 18:43:24 +08:00
add missing files throughout the codebase (#102)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from typing import Any, Callable, Optional, overload, TypeVar
|
||||
from contextlib import contextmanager
|
||||
from typing import Any, Callable, Optional, overload, TypeVar, Iterator
|
||||
|
||||
from django.db import ProgrammingError
|
||||
|
||||
@@ -6,16 +7,18 @@ class TransactionManagementError(ProgrammingError): ...
|
||||
|
||||
def get_connection(using: Optional[str] = ...) -> Any: ...
|
||||
def get_autocommit(using: Optional[str] = ...) -> bool: ...
|
||||
def set_autocommit(autocommit: bool, using: None = ...) -> Any: ...
|
||||
def commit(using: None = ...) -> Any: ...
|
||||
def rollback(using: None = ...) -> Any: ...
|
||||
def savepoint(using: None = ...) -> str: ...
|
||||
def savepoint_rollback(sid: str, using: None = ...) -> None: ...
|
||||
def set_autocommit(autocommit: bool, using: Optional[str] = ...) -> Any: ...
|
||||
def commit(using: Optional[str] = ...) -> Any: ...
|
||||
def rollback(using: Optional[str] = ...) -> Any: ...
|
||||
def savepoint(using: Optional[str] = ...) -> str: ...
|
||||
def savepoint_rollback(sid: str, using: Optional[str] = ...) -> None: ...
|
||||
def savepoint_commit(sid: Any, using: Optional[Any] = ...) -> None: ...
|
||||
def clean_savepoints(using: Optional[Any] = ...) -> None: ...
|
||||
def get_rollback(using: None = ...) -> bool: ...
|
||||
def get_rollback(using: Optional[str] = ...) -> bool: ...
|
||||
def set_rollback(rollback: bool, using: Optional[str] = ...) -> None: ...
|
||||
def on_commit(func: Callable, using: None = ...) -> None: ...
|
||||
@contextmanager
|
||||
def mark_for_rollback_on_error(using: Optional[str] = ...) -> Iterator[None]: ...
|
||||
def on_commit(func: Callable, using: Optional[str] = ...) -> None: ...
|
||||
|
||||
_C = TypeVar("_C", bound=Callable) # Any callable
|
||||
|
||||
|
||||
Reference in New Issue
Block a user