Skip to content

Commit c57f2eb

Browse files
committed
A few fixes
1 parent b74503d commit c57f2eb

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

django-stubs/db/__init__.pyi

-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
from typing import Any
22

3-
from django.utils.connection import ConnectionProxy
4-
5-
from . import migrations as migrations
63
from .backends.base.base import BaseDatabaseWrapper
74
from .utils import DEFAULT_DB_ALIAS as DEFAULT_DB_ALIAS # Not exported in __all__
85
from .utils import DJANGO_VERSION_PICKLE_KEY as DJANGO_VERSION_PICKLE_KEY
9-
from .utils import ConnectionDoesNotExist as ConnectionDoesNotExist
106
from .utils import ConnectionHandler, ConnectionRouter
117
from .utils import DatabaseError as DatabaseError
128
from .utils import DataError as DataError

django-stubs/template/backends/base.pyi

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ from collections.abc import Iterator, Mapping
22
from typing import Any, Protocol
33

44
from django.http.request import HttpRequest
5-
from django.template import TemplateDoesNotExist
6-
from django.template.base import Context
7-
from django.template.context import _ContextKeys
5+
from django.template.context import Context, _ContextKeys
86
from django.utils.safestring import SafeString
97

108
class BaseEngine:

django-stubs/template/base.pyi

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ from logging import Logger
44
from re import Pattern
55
from typing import Any
66

7-
from django.template.context import Context, _ContextKeys
7+
from django.template.context import Context as Context # noqa: F401 # Django: imported for backwards compatibility
8+
from django.template.context import _ContextKeys
89
from django.template.engine import Engine
910
from django.template.library import Library
1011
from django.template.loaders.base import Loader

0 commit comments

Comments
 (0)