Skip to content

Commit

Permalink
Fix imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
sterliakov committed Mar 28, 2022
1 parent 0cee260 commit a05ec68
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions django-stubs/db/models/expressions.pyi
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
import datetime
from decimal import Decimal
from typing import Any, Callable, Dict, Iterable, Iterator, List, Optional, Sequence, Set, Tuple, Type, TypeVar, Union
import sys
from typing import (
Any, Callable, Dict, Iterable, Iterator, List, Optional, Sequence,
Set, Tuple, Type, TypeVar, Union,
)

from django.db.backends.base.base import BaseDatabaseWrapper
from django.db.models import Q, QuerySet
from django.db.models import Q
from django.db.models.fields import Field
from django.db.models.lookups import Lookup, Transform
from django.db.models.query import QuerySet
from django.db.models.sql.query import Query
from django.db.models.sql.compiler import SQLCompiler
from django.db.models.sql.compiler import _AsSqlType

if sys.version_info < (3, 8):
from typing_extensions import Literal
else:
from typing import Literal

class SQLiteNumericMixin:
def as_sqlite(
self, compiler: SQLCompiler, connection: BaseDatabaseWrapper, **extra_context: Any
) -> _AsSqlType: ...

_Self = TypeVar("_Self")

_Numeric = Union[float, Decimal]

class Combinable:
Expand Down

0 comments on commit a05ec68

Please sign in to comment.