migrations stubs improvements

This commit is contained in:
Maxim Kurnikov
2018-08-14 12:41:05 +03:00
parent 7df3bf44cb
commit 5e2e5feef4
3 changed files with 185 additions and 100 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
from contextlib import ContextDecorator
from typing import Any, Callable, Optional, Union
from typing import Any, Callable, Optional, Union, ContextManager
from django.db import ProgrammingError
from django.db.backends.sqlite3.base import DatabaseWrapper
@@ -31,5 +31,5 @@ class Atomic(ContextDecorator):
def atomic(
using: Optional[Union[Callable, str]] = ..., savepoint: bool = ...
) -> Callable: ...
) -> ContextManager[Atomic]: ...
def non_atomic_requests(using: Callable = ...) -> Callable: ...