mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-11-14 16:03:06 +08:00
merge with stubgen output
This commit is contained in:
1 parent
496a6274e7
commit
4866354600
294 files changed
+10234
-10842
No files matched your search
@@ -1,39 +1,35 @@
|
||||
# Stubs for django.db.transaction (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from contextlib import ContextDecorator
|
||||
from django.db import ProgrammingError
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.db.backends.sqlite3.base import DatabaseWrapper
|
||||
from typing import (
|
||||
Callable,
|
||||
Optional,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
def atomic(using: Optional[Union[str, Callable]] = ..., savepoint: bool = ...) -> Callable: ...
|
||||
|
||||
|
||||
def commit(using: None = ...): ...
|
||||
|
||||
|
||||
def get_autocommit(using: str = ...) -> bool: ...
|
||||
|
||||
from typing import Callable, Optional, Union
|
||||
class TransactionManagementError(ProgrammingError): ...
|
||||
|
||||
def get_connection(using: Optional[str] = ...) -> DatabaseWrapper: ...
|
||||
|
||||
|
||||
def get_autocommit(using: str = ...) -> bool: ...
|
||||
def set_autocommit(autocommit: Any, using: Optional[Any] = ...): ...
|
||||
def commit(using: None = ...) -> None: ...
|
||||
def rollback(using: Optional[Any] = ...) -> None: ...
|
||||
def savepoint(using: Optional[Any] = ...): ...
|
||||
def savepoint_rollback(sid: str, using: None = ...) -> None: ...
|
||||
def savepoint_commit(sid: Any, using: Optional[Any] = ...) -> None: ...
|
||||
def clean_savepoints(using: Optional[Any] = ...) -> None: ...
|
||||
def get_rollback(using: None = ...) -> bool: ...
|
||||
|
||||
|
||||
def non_atomic_requests(using: Callable = ...) -> Callable: ...
|
||||
|
||||
|
||||
def set_rollback(rollback: bool, using: Optional[str] = ...) -> None: ...
|
||||
def on_commit(func: Callable, using: None = ...) -> None: ...
|
||||
|
||||
|
||||
def savepoint_rollback(sid: str, using: None = ...) -> None: ...
|
||||
|
||||
|
||||
def set_rollback(rollback: bool, using: Optional[str] = ...) -> None: ...
|
||||
|
||||
|
||||
class Atomic:
|
||||
class Atomic(ContextDecorator):
|
||||
using: Any = ...
|
||||
savepoint: Any = ...
|
||||
def __init__(self, using: Optional[str], savepoint: bool) -> None: ...
|
||||
def __enter__(self) -> None: ...
|
||||
def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> None: ...
|
||||
def __init__(self, using: Optional[str], savepoint: bool) -> None: ...
|
||||
|
||||
def atomic(using: Optional[Union[str, Callable]] = ..., savepoint: bool = ...) -> Callable: ...
|
||||
def _non_atomic_requests(view: Any, using: Any): ...
|
||||
def non_atomic_requests(using: Callable = ...) -> Callable: ...
|
||||
Reference in new issue
Block a user