mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-28 22:56:56 +08:00
reformat with black
This commit is contained in:
@@ -8,6 +8,7 @@ from typing import Any, Optional
|
||||
|
||||
from django.db.backends.sqlite3.base import DatabaseWrapper
|
||||
from typing import Callable, Optional, Union
|
||||
|
||||
class TransactionManagementError(ProgrammingError): ...
|
||||
|
||||
def get_connection(using: Optional[str] = ...) -> DatabaseWrapper: ...
|
||||
@@ -30,6 +31,8 @@ class Atomic(ContextDecorator):
|
||||
def __enter__(self) -> None: ...
|
||||
def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> None: ...
|
||||
|
||||
def atomic(using: Optional[Union[str, Callable]] = ..., savepoint: bool = ...) -> Callable: ...
|
||||
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