id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1 value | extension stringclasses 14 values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12 values | repo_extraction_date stringclasses 433 values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
29,500 | query_utils.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/query_utils.pyi | from collections import namedtuple
from typing import Any, Collection, Dict, Iterator, List, Mapping, Optional, Sequence, Set, Tuple, Type
from django.db.models.base import Model
from django.db.models.fields.mixins import FieldCacheMixin
from django.db.models.sql.compiler import SQLCompiler
from django.db.models.sql.query import Query
from django.db.models.sql.where import WhereNode
from django.db.models.fields import Field
from django.utils import tree
PathInfo = namedtuple("PathInfo", "from_opts to_opts target_fields join_field m2m direct filtered_relation")
class InvalidQuery(Exception): ...
def subclasses(cls: Type[RegisterLookupMixin]) -> Iterator[Type[RegisterLookupMixin]]: ...
class QueryWrapper:
contains_aggregate: bool = ...
data: Tuple[str, List[Any]] = ...
def __init__(self, sql: str, params: List[Any]) -> None: ...
def as_sql(self, compiler: SQLCompiler = ..., connection: Any = ...) -> Any: ...
class Q(tree.Node):
AND: str = ...
OR: str = ...
conditional: bool = ...
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
def __or__(self, other: Any) -> Q: ...
def __and__(self, other: Any) -> Q: ...
def __invert__(self) -> Q: ...
def resolve_expression(
self,
query: Query = ...,
allow_joins: bool = ...,
reuse: Optional[Set[str]] = ...,
summarize: bool = ...,
for_save: bool = ...,
) -> WhereNode: ...
def deconstruct(self) -> Tuple[str, Tuple, Dict[str, str]]: ...
class DeferredAttribute:
field_name: str = ...
field: Field
def __init__(self, field_name: str) -> None: ...
class RegisterLookupMixin:
lookup_name: str
@classmethod
def get_lookups(cls) -> Dict[str, Any]: ...
def get_lookup(self, lookup_name: str) -> Optional[Any]: ...
def get_transform(self, lookup_name: str) -> Optional[Any]: ...
@staticmethod
def merge_dicts(dicts: List[Dict[str, Any]]) -> Dict[str, Any]: ...
@classmethod
def register_lookup(cls, lookup: Any, lookup_name: Optional[str] = ...) -> Type[Any]: ...
@classmethod
def _unregister_lookup(cls, lookup: Any, lookup_name: Optional[str] = ...): ...
def select_related_descend(
field: Field,
restricted: bool,
requested: Optional[Mapping[str, Any]],
load_fields: Optional[Collection[str]],
reverse: bool = ...,
) -> bool: ...
def refs_expression(lookup_parts: Sequence[str], annotations: Mapping[str, bool]) -> Tuple[bool, Sequence[str]]: ...
def check_rel_lookup_compatibility(model: Type[Model], target_opts: Any, field: FieldCacheMixin) -> bool: ...
class FilteredRelation:
relation_name: str = ...
alias: Optional[str] = ...
condition: Q = ...
path: List[str] = ...
def __init__(self, relation_name: str, *, condition: Any = ...) -> None: ...
def clone(self) -> FilteredRelation: ...
def resolve_expression(self, *args: Any, **kwargs: Any) -> None: ...
def as_sql(self, compiler: SQLCompiler, connection: Any) -> Any: ...
| 3,011 | Python | .py | 68 | 40 | 116 | 0.646999 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,501 | lookups.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/lookups.pyi | from datetime import datetime
from typing import Any, Iterable, List, Optional, Tuple, Type, Union, Mapping, TypeVar, Generic
from django.db.backends.sqlite3.base import DatabaseWrapper
from django.db.models.expressions import Expression, Func
from django.db.models.query_utils import RegisterLookupMixin
from django.db.models.sql.compiler import SQLCompiler
from django.utils.datastructures import OrderedSet
from django.utils.safestring import SafeText
from django.db.models.fields import TextField, related_lookups
_T = TypeVar("_T")
class Lookup(Generic[_T]):
lookup_name: str = ...
prepare_rhs: bool = ...
can_use_none_as_rhs: bool = ...
lhs: Any = ...
rhs: Any = ...
bilateral_transforms: List[Type[Transform]] = ...
def __init__(self, lhs: Union[Expression, TextField, related_lookups.MultiColSource], rhs: Any) -> None: ...
def apply_bilateral_transforms(self, value: Expression) -> Transform: ...
def batch_process_rhs(
self, compiler: SQLCompiler, connection: DatabaseWrapper, rhs: Optional[OrderedSet] = ...
) -> Tuple[List[str], List[str]]: ...
def get_source_expressions(self) -> List[Expression]: ...
def set_source_expressions(self, new_exprs: List[Expression]) -> None: ...
def get_prep_lookup(self) -> Any: ...
def get_db_prep_lookup(self, value: Union[int, str], connection: DatabaseWrapper) -> Tuple[str, List[SafeText]]: ...
def process_lhs(
self, compiler: SQLCompiler, connection: DatabaseWrapper, lhs: Optional[Expression] = ...
) -> Tuple[str, List[Union[int, str]]]: ...
def process_rhs(self, compiler: SQLCompiler, connection: DatabaseWrapper) -> Tuple[str, List[Union[int, str]]]: ...
def rhs_is_direct_value(self) -> bool: ...
def relabeled_clone(self: _T, relabels: Mapping[str, str]) -> _T: ...
def get_group_by_cols(self) -> List[Expression]: ...
def as_sql(self, compiler: Any, connection: Any) -> Any: ...
def contains_aggregate(self) -> bool: ...
def contains_over_clause(self) -> bool: ...
@property
def is_summary(self) -> bool: ...
class Transform(RegisterLookupMixin, Func):
bilateral: bool = ...
@property
def lhs(self) -> Expression: ...
def get_bilateral_transforms(self) -> List[Type[Transform]]: ...
class BuiltinLookup(Lookup[_T]):
def get_rhs_op(self, connection: DatabaseWrapper, rhs: str) -> str: ...
class FieldGetDbPrepValueMixin:
get_db_prep_lookup_value_is_iterable: bool = ...
class FieldGetDbPrepValueIterableMixin(FieldGetDbPrepValueMixin):
def get_prep_lookup(self) -> Iterable[Any]: ...
def resolve_expression_parameter(
self, compiler: SQLCompiler, connection: DatabaseWrapper, sql: str, param: Any
) -> Any: ...
class Exact(FieldGetDbPrepValueMixin, BuiltinLookup): ...
class IExact(BuiltinLookup): ...
class GreaterThan(FieldGetDbPrepValueMixin, BuiltinLookup): ...
class GreaterThanOrEqual(FieldGetDbPrepValueMixin, BuiltinLookup[_T]): ...
class LessThan(FieldGetDbPrepValueMixin, BuiltinLookup[_T]): ...
class LessThanOrEqual(FieldGetDbPrepValueMixin, BuiltinLookup): ...
class IntegerFieldFloatRounding:
rhs: Any = ...
def get_prep_lookup(self) -> Any: ...
class IntegerGreaterThanOrEqual(IntegerFieldFloatRounding, GreaterThanOrEqual[Union[int, float]]): ...
class IntegerLessThan(IntegerFieldFloatRounding, LessThan[Union[int, float]]): ...
class In(FieldGetDbPrepValueIterableMixin, BuiltinLookup):
def split_parameter_list_as_sql(self, compiler: Any, connection: Any): ...
class PatternLookup(BuiltinLookup[str]):
param_pattern: str = ...
class Contains(PatternLookup): ...
class IContains(Contains): ...
class StartsWith(PatternLookup): ...
class IStartsWith(StartsWith): ...
class EndsWith(PatternLookup): ...
class IEndsWith(EndsWith): ...
class Range(FieldGetDbPrepValueIterableMixin, BuiltinLookup): ...
class IsNull(BuiltinLookup[bool]): ...
class Regex(BuiltinLookup[str]): ...
class IRegex(Regex): ...
class YearLookup(Lookup):
def year_lookup_bounds(self, connection: DatabaseWrapper, year: int) -> List[str]: ...
class YearComparisonLookup(YearLookup):
def get_rhs_op(self, connection: DatabaseWrapper, rhs: str) -> str: ...
def get_bound(self, start: datetime, finish: datetime) -> Any: ...
class YearExact(YearLookup, Exact): ...
class YearGt(YearComparisonLookup): ...
class YearGte(YearComparisonLookup): ...
class YearLt(YearComparisonLookup): ...
class YearLte(YearComparisonLookup): ...
| 4,475 | Python | .py | 87 | 48.08046 | 120 | 0.723633 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,502 | query.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/query.pyi | import datetime
from typing import (
Any,
Collection,
Dict,
Generic,
Iterable,
Iterator,
List,
MutableMapping,
Optional,
Sequence,
Sized,
Tuple,
Type,
TypeVar,
Union,
overload,
Reversible,
)
from django.db.models.base import Model
from django.db.models.expressions import Combinable as Combinable, F as F # noqa: F401
from django.db.models.sql.query import Query, RawQuery
from django.db import models
from django.db.models import Manager
from django.db.models.query_utils import Q as Q # noqa: F401
_T = TypeVar("_T", bound=models.Model, covariant=True)
_QS = TypeVar("_QS", bound="_BaseQuerySet")
class _BaseQuerySet(Generic[_T], Sized):
model: Type[_T]
query: Query
def __init__(
self,
model: Optional[Type[models.Model]] = ...,
query: Optional[Query] = ...,
using: Optional[str] = ...,
hints: Optional[Dict[str, models.Model]] = ...,
) -> None: ...
@classmethod
def as_manager(cls) -> Manager[Any]: ...
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
def __class_getitem__(cls, item: Type[_T]): ...
def __getstate__(self) -> Dict[str, Any]: ...
# Technically, the other QuerySet must be of the same type _T, but _T is covariant
def __and__(self: _QS, other: _BaseQuerySet[_T]) -> _QS: ...
def __or__(self: _QS, other: _BaseQuerySet[_T]) -> _QS: ...
def iterator(self, chunk_size: int = ...) -> Iterator[_T]: ...
def aggregate(self, *args: Any, **kwargs: Any) -> Dict[str, Any]: ...
def get(self, *args: Any, **kwargs: Any) -> _T: ...
def create(self, *args: Any, **kwargs: Any) -> _T: ...
def bulk_create(
self, objs: Iterable[_T], batch_size: Optional[int] = ..., ignore_conflicts: bool = ...
) -> List[_T]: ...
def bulk_update(self, objs: Iterable[_T], fields: Sequence[str], batch_size: Optional[int] = ...) -> None: ...
def get_or_create(self, defaults: Optional[MutableMapping[str, Any]] = ..., **kwargs: Any) -> Tuple[_T, bool]: ...
def update_or_create(
self, defaults: Optional[MutableMapping[str, Any]] = ..., **kwargs: Any
) -> Tuple[_T, bool]: ...
def earliest(self, *fields: Any, field_name: Optional[Any] = ...) -> _T: ...
def latest(self, *fields: Any, field_name: Optional[Any] = ...) -> _T: ...
def first(self) -> Optional[_T]: ...
def last(self) -> Optional[_T]: ...
def in_bulk(self, id_list: Iterable[Any] = ..., *, field_name: str = ...) -> Dict[Any, _T]: ...
def delete(self) -> Tuple[int, Dict[str, int]]: ...
def update(self, **kwargs: Any) -> int: ...
def exists(self) -> bool: ...
def explain(self, *, format: Optional[Any] = ..., **options: Any) -> str: ...
def raw(
self,
raw_query: str,
params: Any = ...,
translations: Optional[Dict[str, str]] = ...,
using: Optional[str] = ...,
) -> RawQuerySet: ...
# The type of values may be overridden to be more specific in the mypy plugin, depending on the fields param
def values(self, *fields: Union[str, Combinable], **expressions: Any) -> ValuesQuerySet[_T, Dict[str, Any]]: ...
# The type of values_list may be overridden to be more specific in the mypy plugin, depending on the fields param
def values_list(
self, *fields: Union[str, Combinable], flat: bool = ..., named: bool = ...
) -> ValuesQuerySet[_T, Any]: ...
def dates(self, field_name: str, kind: str, order: str = ...) -> ValuesQuerySet[_T, datetime.date]: ...
def datetimes(
self, field_name: str, kind: str, order: str = ..., tzinfo: Optional[datetime.tzinfo] = ...
) -> ValuesQuerySet[_T, datetime.datetime]: ...
def none(self: _QS) -> _QS: ...
def all(self: _QS) -> _QS: ...
def filter(self: _QS, *args: Any, **kwargs: Any) -> _QS: ...
def exclude(self: _QS, *args: Any, **kwargs: Any) -> _QS: ...
def complex_filter(self, filter_obj: Any) -> _QS: ...
def count(self) -> int: ...
def union(self: _QS, *other_qs: Any, all: bool = ...) -> _QS: ...
def intersection(self: _QS, *other_qs: Any) -> _QS: ...
def difference(self: _QS, *other_qs: Any) -> _QS: ...
def select_for_update(self: _QS, nowait: bool = ..., skip_locked: bool = ..., of: Tuple = ...) -> _QS: ...
def select_related(self: _QS, *fields: Any) -> _QS: ...
def prefetch_related(self: _QS, *lookups: Any) -> _QS: ...
# TODO: return type
def annotate(self, *args: Any, **kwargs: Any) -> QuerySet[Any]: ...
def order_by(self: _QS, *field_names: Any) -> _QS: ...
def distinct(self: _QS, *field_names: Any) -> _QS: ...
# extra() return type won't be supported any time soon
def extra(
self,
select: Optional[Dict[str, Any]] = ...,
where: Optional[List[str]] = ...,
params: Optional[List[Any]] = ...,
tables: Optional[List[str]] = ...,
order_by: Optional[Sequence[str]] = ...,
select_params: Optional[Sequence[Any]] = ...,
) -> QuerySet[Any]: ...
def reverse(self: _QS) -> _QS: ...
def defer(self: _QS, *fields: Any) -> _QS: ...
def only(self: _QS, *fields: Any) -> _QS: ...
def using(self: _QS, alias: Optional[str]) -> _QS: ...
@property
def ordered(self) -> bool: ...
@property
def db(self) -> str: ...
def resolve_expression(self, *args: Any, **kwargs: Any) -> Any: ...
class QuerySet(_BaseQuerySet[_T], Collection[_T], Reversible[_T], Sized):
def __iter__(self) -> Iterator[_T]: ...
def __contains__(self, x: object) -> bool: ...
@overload
def __getitem__(self, i: int) -> _T: ...
@overload
def __getitem__(self: _QS, s: slice) -> _QS: ...
def __reversed__(self) -> Iterator[_T]: ...
_Row = TypeVar("_Row", covariant=True)
class BaseIterable(Sequence[_Row]):
def __init__(self, queryset: _BaseQuerySet, chunked_fetch: bool = ..., chunk_size: int = ...): ...
def __iter__(self) -> Iterator[_Row]: ...
def __contains__(self, x: object) -> bool: ...
def __len__(self) -> int: ...
@overload
def __getitem__(self, i: int) -> _Row: ...
@overload
def __getitem__(self, s: slice) -> Sequence[_Row]: ...
class ModelIterable(BaseIterable[Model]): ...
class ValuesIterable(BaseIterable[Dict[str, Any]]): ...
class ValuesListIterable(BaseIterable[Tuple]): ...
class NamedValuesListIterable(ValuesListIterable): ...
class FlatValuesListIterable(BaseIterable):
def __iter__(self) -> Iterator[Any]: ...
class ValuesQuerySet(_BaseQuerySet[_T], Collection[_Row], Sized):
def __contains__(self, x: object) -> bool: ...
def __iter__(self) -> Iterator[_Row]: ... # type: ignore
@overload # type: ignore
def __getitem__(self, i: int) -> _Row: ...
@overload
def __getitem__(self: _QS, s: slice) -> _QS: ...
def iterator(self, chunk_size: int = ...) -> Iterator[_Row]: ... # type: ignore
def get(self, *args: Any, **kwargs: Any) -> _Row: ... # type: ignore
def earliest(self, *fields: Any, field_name: Optional[Any] = ...) -> _Row: ... # type: ignore
def latest(self, *fields: Any, field_name: Optional[Any] = ...) -> _Row: ... # type: ignore
def first(self) -> Optional[_Row]: ... # type: ignore
def last(self) -> Optional[_Row]: ... # type: ignore
class RawQuerySet(Iterable[_T], Sized):
query: RawQuery
def __init__(
self,
raw_query: Union[RawQuery, str],
model: Optional[Type[models.Model]] = ...,
query: Optional[Query] = ...,
params: Tuple[Any] = ...,
translations: Optional[Dict[str, str]] = ...,
using: str = ...,
hints: Optional[Dict[str, models.Model]] = ...,
) -> None: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[_T]: ...
def __bool__(self) -> bool: ...
@overload
def __getitem__(self, k: int) -> _T: ...
@overload
def __getitem__(self, k: str) -> Any: ...
@overload
def __getitem__(self, k: slice) -> RawQuerySet[_T]: ...
@property
def columns(self) -> List[str]: ...
@property
def db(self) -> str: ...
def iterator(self) -> Iterator[_T]: ...
@property
def model_fields(self) -> Dict[str, str]: ...
def prefetch_related(self, *lookups: Any) -> RawQuerySet[_T]: ...
def resolve_model_init_order(self) -> Tuple[List[str], List[int], List[Tuple[str, int]]]: ...
def using(self, alias: Optional[str]) -> RawQuerySet[_T]: ...
class Prefetch(object):
def __init__(self, lookup: str, queryset: Optional[QuerySet] = ..., to_attr: Optional[str] = ...) -> None: ...
def __getstate__(self) -> Dict[str, Any]: ...
def add_prefix(self, prefix: str) -> None: ...
def get_current_prefetch_to(self, level: int) -> str: ...
def get_current_to_attr(self, level: int) -> Tuple[str, str]: ...
def get_current_queryset(self, level) -> Optional[QuerySet]: ...
def prefetch_related_objects(model_instances: Iterable[_T], *related_lookups: Union[str, Prefetch]) -> None: ...
def get_prefetcher(instance: Model, through_attr: str, to_attr: str) -> Tuple[Any, Any, bool, bool]: ...
class InstanceCheckMeta(type): ...
class EmptyQuerySet(metaclass=InstanceCheckMeta): ...
| 9,202 | Python | .py | 199 | 41.130653 | 118 | 0.582712 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,503 | expressions.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/expressions.pyi | from datetime import datetime, timedelta
from typing import Any, Callable, Dict, Iterator, List, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, Iterable
from django.db.models.lookups import Lookup
from django.db.models.sql.compiler import SQLCompiler
from django.db.models import Q, QuerySet
from django.db.models.fields import Field
from django.db.models.query import _BaseQuerySet
_OutputField = Union[Field, str]
class SQLiteNumericMixin:
def as_sqlite(self, compiler: SQLCompiler, connection: Any, **extra_context: Any) -> Tuple[str, List[float]]: ...
_Self = TypeVar("_Self")
class Combinable:
ADD: str = ...
SUB: str = ...
MUL: str = ...
DIV: str = ...
POW: str = ...
MOD: str = ...
BITAND: str = ...
BITOR: str = ...
BITLEFTSHIFT: str = ...
BITRIGHTSHIFT: str = ...
def __neg__(self: _Self) -> _Self: ...
def __add__(self: _Self, other: Optional[Union[timedelta, Combinable, float, str]]) -> _Self: ...
def __sub__(self: _Self, other: Union[timedelta, Combinable, float]) -> _Self: ...
def __mul__(self: _Self, other: Union[timedelta, Combinable, float]) -> _Self: ...
def __truediv__(self: _Self, other: Union[Combinable, float]) -> _Self: ...
def __itruediv__(self: _Self, other: Union[Combinable, float]) -> _Self: ...
def __mod__(self: _Self, other: Union[int, Combinable]) -> _Self: ...
def __pow__(self: _Self, other: Union[float, Combinable]) -> _Self: ...
def __and__(self: _Self, other: Combinable) -> _Self: ...
def bitand(self: _Self, other: int) -> _Self: ...
def bitleftshift(self: _Self, other: int) -> _Self: ...
def bitrightshift(self: _Self, other: int) -> _Self: ...
def __or__(self: _Self, other: Combinable) -> _Self: ...
def bitor(self: _Self, other: int) -> _Self: ...
def __radd__(self, other: Optional[Union[datetime, float, Combinable]]) -> Combinable: ...
def __rsub__(self, other: Union[float, Combinable]) -> Combinable: ...
def __rmul__(self, other: Union[float, Combinable]) -> Combinable: ...
def __rtruediv__(self, other: Union[float, Combinable]) -> Combinable: ...
def __rmod__(self, other: Union[int, Combinable]) -> Combinable: ...
def __rpow__(self, other: Union[float, Combinable]) -> Combinable: ...
def __rand__(self, other: Any) -> Combinable: ...
def __ror__(self, other: Any) -> Combinable: ...
class BaseExpression:
is_summary: bool = ...
filterable: bool = ...
window_compatible: bool = ...
def __init__(self, output_field: Optional[_OutputField] = ...) -> None: ...
def get_db_converters(self, connection: Any) -> List[Callable]: ...
def get_source_expressions(self) -> List[Any]: ...
def set_source_expressions(self, exprs: Sequence[Combinable]) -> None: ...
@property
def contains_aggregate(self) -> bool: ...
@property
def contains_over_clause(self) -> bool: ...
@property
def contains_column_references(self) -> bool: ...
def resolve_expression(
self: _Self,
query: Any = ...,
allow_joins: bool = ...,
reuse: Optional[Set[str]] = ...,
summarize: bool = ...,
for_save: bool = ...,
) -> _Self: ...
@property
def field(self) -> Field: ...
@property
def output_field(self) -> Field: ...
@property
def convert_value(self) -> Callable: ...
def get_lookup(self, lookup: str) -> Optional[Type[Lookup]]: ...
def get_transform(self, name: str) -> Optional[Type[Expression]]: ...
def relabeled_clone(self, change_map: Dict[Optional[str], str]) -> Expression: ...
def copy(self) -> BaseExpression: ...
def get_group_by_cols(self: _Self) -> List[_Self]: ...
def get_source_fields(self) -> List[Optional[Field]]: ...
def asc(self, **kwargs: Any) -> Expression: ...
def desc(self, **kwargs: Any) -> Expression: ...
def reverse_ordering(self): ...
def flatten(self) -> Iterator[Expression]: ...
def deconstruct(self) -> Any: ...
def as_sqlite(self, compiler: SQLCompiler, connection: Any) -> Any: ...
def as_sql(self, compiler: SQLCompiler, connection: Any, **extra_context: Any) -> Any: ...
def as_mysql(self, compiler: Any, connection: Any) -> Any: ...
def as_postgresql(self, compiler: Any, connection: Any) -> Any: ...
def as_oracle(self, compiler: Any, connection: Any): ...
class Expression(BaseExpression, Combinable): ...
class CombinedExpression(SQLiteNumericMixin, Expression):
connector: Any = ...
lhs: Any = ...
rhs: Any = ...
def __init__(
self, lhs: Combinable, connector: str, rhs: Combinable, output_field: Optional[_OutputField] = ...
) -> None: ...
class F(Combinable):
name: str
def __init__(self, name: str): ...
def resolve_expression(
self: _Self,
query: Any = ...,
allow_joins: bool = ...,
reuse: Optional[Set[str]] = ...,
summarize: bool = ...,
for_save: bool = ...,
) -> _Self: ...
def asc(self, **kwargs) -> OrderBy: ...
def desc(self, **kwargs) -> OrderBy: ...
def deconstruct(self) -> Any: ...
class OuterRef(F):
def __init__(self, name: Union[str, OuterRef]): ...
class Subquery(Expression):
template: str = ...
queryset: QuerySet = ...
extra: Dict[Any, Any] = ...
def __init__(self, queryset: _BaseQuerySet, output_field: Optional[_OutputField] = ..., **extra: Any) -> None: ...
class Exists(Subquery):
negated: bool = ...
def __init__(self, *args: Any, negated: bool = ..., **kwargs: Any) -> None: ...
def __invert__(self) -> Exists: ...
class OrderBy(BaseExpression):
template: str = ...
nulls_first: bool = ...
nulls_last: bool = ...
descending: bool = ...
expression: Expression = ...
def __init__(
self, expression: Combinable, descending: bool = ..., nulls_first: bool = ..., nulls_last: bool = ...
) -> None: ...
class Value(Expression):
value: Any = ...
def __init__(self, value: Any, output_field: Optional[_OutputField] = ...) -> None: ...
class RawSQL(Expression):
params: List[Any]
sql: str
def __init__(self, sql: str, params: Sequence[Any], output_field: Optional[_OutputField] = ...) -> None: ...
class Func(SQLiteNumericMixin, Expression):
function: str = ...
name: str = ...
template: str = ...
arg_joiner: str = ...
arity: int = ...
source_expressions: List[Combinable] = ...
extra: Dict[Any, Any] = ...
def __init__(self, *expressions: Any, output_field: Optional[_OutputField] = ..., **extra: Any) -> None: ...
class When(Expression):
template: str = ...
condition: Any = ...
result: Any = ...
def __init__(self, condition: Any = ..., then: Any = ..., **lookups: Any) -> None: ...
class Case(Expression):
template: str = ...
case_joiner: str = ...
cases: Any = ...
default: Any = ...
extra: Any = ...
def __init__(
self, *cases: Any, default: Optional[Any] = ..., output_field: Optional[_OutputField] = ..., **extra: Any
) -> None: ...
class ExpressionWrapper(Expression):
def __init__(self, expression: Union[Q, Combinable], output_field: _OutputField): ...
class Col(Expression):
def __init__(self, alias: str, target: str, output_field: Optional[_OutputField] = ...): ...
class SimpleCol(Expression):
contains_column_references: bool = ...
def __init__(self, target: Field, output_field: Optional[_OutputField] = ...): ...
class Ref(Expression):
def __init__(self, refs: str, source: Expression): ...
class ExpressionList(Func):
def __init__(self, *expressions: Union[BaseExpression, Combinable], **extra: Any) -> None: ...
class Random(Expression): ...
class Window(Expression):
template: str = ...
contains_aggregate: bool = ...
contains_over_clause: bool = ...
def __init__(
self,
expression: BaseExpression,
partition_by: Optional[Union[str, Iterable[Union[BaseExpression, F]], F, BaseExpression]] = ...,
order_by: Optional[Union[Sequence[Union[BaseExpression, F]], Union[BaseExpression, F]]] = ...,
frame: Optional[WindowFrame] = ...,
output_field: Optional[_OutputField] = ...,
) -> None: ...
class WindowFrame(Expression):
template: str = ...
frame_type: str = ...
def __init__(self, start: Optional[int] = ..., end: Optional[int] = ...) -> None: ...
def window_frame_start_end(self, connection: Any, start: Optional[int], end: Optional[int]) -> Tuple[int, int]: ...
class RowRange(WindowFrame): ...
class ValueRange(WindowFrame): ...
| 8,583 | Python | .py | 191 | 40.062827 | 119 | 0.606887 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,504 | reverse_related.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/fields/reverse_related.pyi | from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union
from django.db.models.base import Model
from django.db.models.fields.related import ForeignKey, OneToOneField, RelatedField
from django.db.models.lookups import BuiltinLookup, StartsWith
from django.db.models.query_utils import FilteredRelation, PathInfo
from django.db.models.sql.where import WhereNode
from django.db.models.fields import AutoField, Field
from .mixins import FieldCacheMixin
class ForeignObjectRel(FieldCacheMixin):
many_to_many: bool
many_to_one: bool
one_to_many: bool
one_to_one: bool
auto_created: bool = ...
concrete: bool = ...
editable: bool = ...
is_relation: bool = ...
related_model: Type[Model]
null: bool = ...
field: RelatedField = ...
model: Union[Type[Model], str] = ...
related_name: Optional[str] = ...
related_query_name: Optional[str] = ...
limit_choices_to: Optional[Union[Dict[str, Any], Callable[[], Any]]] = ...
parent_link: bool = ...
on_delete: Callable = ...
symmetrical: bool = ...
multiple: bool = ...
field_name: Optional[str] = ...
def __init__(
self,
field: RelatedField,
to: Union[Type[Model], str],
related_name: Optional[str] = ...,
related_query_name: Optional[str] = ...,
limit_choices_to: Optional[Union[Dict[str, Any], Callable[[], Any]]] = ...,
parent_link: bool = ...,
on_delete: Optional[Callable] = ...,
) -> None: ...
@property
def hidden(self) -> bool: ...
@property
def name(self) -> str: ...
@property
def remote_field(self) -> RelatedField: ...
@property
def target_field(self) -> AutoField: ...
def get_lookup(self, lookup_name: str) -> Type[BuiltinLookup]: ...
def get_internal_type(self) -> str: ...
@property
def db_type(self) -> Callable: ...
def get_choices(
self, include_blank: bool = ..., blank_choice: List[Tuple[str, str]] = ...
) -> List[Tuple[int, str]]: ...
def is_hidden(self) -> bool: ...
def get_joining_columns(self) -> Tuple: ...
def get_extra_restriction(
self, where_class: Type[WhereNode], alias: str, related_alias: str
) -> Optional[Union[StartsWith, WhereNode]]: ...
def set_field_name(self) -> None: ...
def get_accessor_name(self, model: Optional[Type[Model]] = ...) -> Optional[str]: ...
def get_path_info(self, filtered_relation: Optional[FilteredRelation] = ...) -> List[PathInfo]: ...
class ManyToOneRel(ForeignObjectRel):
def __init__(
self,
field: ForeignKey,
to: Union[Type[Model], str],
field_name: Optional[str],
related_name: Optional[str] = ...,
related_query_name: Optional[str] = ...,
limit_choices_to: Optional[Union[Dict[str, Any], Callable[[], Any]]] = ...,
parent_link: bool = ...,
on_delete: Callable = ...,
) -> None: ...
def get_related_field(self) -> Field: ...
class OneToOneRel(ManyToOneRel):
def __init__(
self,
field: OneToOneField,
to: Union[Type[Model], str],
field_name: Optional[str],
related_name: Optional[str] = ...,
related_query_name: Optional[str] = ...,
limit_choices_to: Optional[Dict[str, str]] = ...,
parent_link: bool = ...,
on_delete: Callable = ...,
) -> None: ...
class ManyToManyRel(ForeignObjectRel):
through: Optional[Union[Type[Model], str]] = ...
through_fields: Optional[Tuple[str, str]] = ...
db_constraint: bool = ...
def __init__(
self,
field: RelatedField,
to: Union[Type[Model], str],
related_name: Optional[str] = ...,
related_query_name: Optional[str] = ...,
limit_choices_to: Any = ...,
symmetrical: bool = ...,
through: Optional[Union[Type[Model], str]] = ...,
through_fields: Optional[Tuple[str, str]] = ...,
db_constraint: bool = ...,
) -> None: ...
def get_related_field(self) -> Field: ...
| 4,045 | Python | .py | 104 | 32.836538 | 103 | 0.60305 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,505 | __init__.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/fields/__init__.pyi | import decimal
import uuid
from datetime import date, datetime, time, timedelta
from typing import (
Any,
Callable,
Dict,
Generic,
Iterable,
Optional,
Tuple,
Type,
TypeVar,
Union,
Sequence,
List,
overload,
)
from django.core import checks
from django.db.models import Model
from django.core.exceptions import FieldDoesNotExist as FieldDoesNotExist
from django.db.models.expressions import Combinable, Col
from django.db.models.query_utils import RegisterLookupMixin
from django.forms import Field as FormField, Widget
class NOT_PROVIDED: ...
BLANK_CHOICE_DASH: List[Tuple[str, str]] = ...
_Choice = Tuple[Any, Any]
_ChoiceNamedGroup = Tuple[str, Iterable[_Choice]]
_FieldChoices = Iterable[Union[_Choice, _ChoiceNamedGroup]]
_ValidatorCallable = Callable[..., None]
_ErrorMessagesToOverride = Dict[str, Any]
_T = TypeVar("_T", bound="Field")
# __set__ value type
_ST = TypeVar("_ST")
# __get__ return type
_GT = TypeVar("_GT")
class Field(RegisterLookupMixin, Generic[_ST, _GT]):
_pyi_private_set_type: Any
_pyi_private_get_type: Any
_pyi_lookup_exact_type: Any
widget: Widget
help_text: str
db_table: str
attname: str
auto_created: bool
primary_key: bool
remote_field: Field
is_relation: bool
related_model: Optional[Type[Model]]
max_length: int
model: Type[Model]
name: str
verbose_name: str
description: str
blank: bool = ...
null: bool = ...
editable: bool = ...
empty_strings_allowed: bool = ...
choices: _FieldChoices = ...
db_column: Optional[str]
column: str
default: Any
error_messages: _ErrorMessagesToOverride
def __init__(
self,
verbose_name: Optional[Union[str, bytes]] = ...,
name: Optional[str] = ...,
primary_key: bool = ...,
max_length: Optional[int] = ...,
unique: bool = ...,
blank: bool = ...,
null: bool = ...,
db_index: bool = ...,
default: Any = ...,
editable: bool = ...,
auto_created: bool = ...,
serialize: bool = ...,
unique_for_date: Optional[str] = ...,
unique_for_month: Optional[str] = ...,
unique_for_year: Optional[str] = ...,
choices: Optional[_FieldChoices] = ...,
help_text: str = ...,
db_column: Optional[str] = ...,
db_tablespace: Optional[str] = ...,
validators: Iterable[_ValidatorCallable] = ...,
error_messages: Optional[_ErrorMessagesToOverride] = ...,
): ...
def __set__(self, instance, value: _ST) -> None: ...
# class access
@overload
def __get__(self: _T, instance: None, owner) -> _T: ...
# Model instance access
@overload
def __get__(self, instance: Model, owner) -> _GT: ...
# non-Model instances
@overload
def __get__(self: _T, instance, owner) -> _T: ...
def deconstruct(self) -> Any: ...
def set_attributes_from_name(self, name: str) -> None: ...
def db_type(self, connection: Any) -> str: ...
def db_parameters(self, connection: Any) -> Dict[str, str]: ...
def pre_save(self, model_instance: Model, add: bool) -> Any: ...
def get_prep_value(self, value: Any) -> Any: ...
def get_db_prep_value(self, value: Any, connection: Any, prepared: bool) -> Any: ...
def get_db_prep_save(self, value: Any, connection: Any) -> Any: ...
def get_internal_type(self) -> str: ...
# TODO: plugin support
def formfield(self, **kwargs) -> Any: ...
def save_form_data(self, instance: Model, data: Any) -> None: ...
def contribute_to_class(self, cls: Type[Model], name: str, private_only: bool = ...) -> None: ...
def to_python(self, value: Any) -> Any: ...
def clean(self, value: Any, model_instance: Optional[Model]) -> Any: ...
def get_choices(
self,
include_blank: bool = ...,
blank_choice: _Choice = ...,
limit_choices_to: Optional[Any] = ...,
ordering: Sequence[str] = ...,
) -> Sequence[Union[_Choice, _ChoiceNamedGroup]]: ...
def has_default(self) -> bool: ...
def get_default(self) -> Any: ...
def check(self, **kwargs: Any) -> List[checks.Error]: ...
@property
def validators(self) -> List[_ValidatorCallable]: ...
def validate(self, value: Any, model_instance: Model) -> None: ...
def run_validators(self, value: Any) -> None: ...
def get_col(self, alias: str, output_field: Optional[Field] = ...) -> Col: ...
@property
def cached_col(self) -> Col: ...
def value_from_object(self, obj: Model) -> _GT: ...
def get_attname(self) -> str: ...
class IntegerField(Field[_ST, _GT]):
_pyi_private_set_type: Union[float, int, str, Combinable]
_pyi_private_get_type: int
_pyi_lookup_exact_type: Union[str, int]
class PositiveIntegerRelDbTypeMixin:
def rel_db_type(self, connection: Any): ...
class PositiveIntegerField(PositiveIntegerRelDbTypeMixin, IntegerField[_ST, _GT]): ...
class PositiveSmallIntegerField(PositiveIntegerRelDbTypeMixin, IntegerField[_ST, _GT]): ...
class SmallIntegerField(IntegerField[_ST, _GT]): ...
class BigIntegerField(IntegerField[_ST, _GT]): ...
class FloatField(Field[_ST, _GT]):
_pyi_private_set_type: Union[float, int, str, Combinable]
_pyi_private_get_type: float
_pyi_lookup_exact_type: float
class DecimalField(Field[_ST, _GT]):
_pyi_private_set_type: Union[str, float, decimal.Decimal, Combinable]
_pyi_private_get_type: decimal.Decimal
_pyi_lookup_exact_type: Union[str, decimal.Decimal]
# attributes
max_digits: int = ...
decimal_places: int = ...
def __init__(
self,
verbose_name: Optional[Union[str, bytes]] = ...,
name: Optional[str] = ...,
max_digits: Optional[int] = ...,
decimal_places: Optional[int] = ...,
primary_key: bool = ...,
unique: bool = ...,
blank: bool = ...,
null: bool = ...,
db_index: bool = ...,
default: Any = ...,
editable: bool = ...,
auto_created: bool = ...,
serialize: bool = ...,
choices: Optional[_FieldChoices] = ...,
help_text: str = ...,
db_column: Optional[str] = ...,
db_tablespace: Optional[str] = ...,
validators: Iterable[_ValidatorCallable] = ...,
error_messages: Optional[_ErrorMessagesToOverride] = ...,
): ...
class AutoField(Field[_ST, _GT]):
_pyi_private_set_type: Union[Combinable, int, str]
_pyi_private_get_type: int
_pyi_lookup_exact_type: Union[str, int]
class CharField(Field[_ST, _GT]):
_pyi_private_set_type: Union[str, int, Combinable]
_pyi_private_get_type: str
# objects are converted to string before comparison
_pyi_lookup_exact_type: Any
def __init__(
self,
verbose_name: Optional[Union[str, bytes]] = ...,
name: Optional[str] = ...,
primary_key: bool = ...,
max_length: Optional[int] = ...,
unique: bool = ...,
blank: bool = ...,
null: bool = ...,
db_index: bool = ...,
default: Any = ...,
editable: bool = ...,
auto_created: bool = ...,
serialize: bool = ...,
unique_for_date: Optional[str] = ...,
unique_for_month: Optional[str] = ...,
unique_for_year: Optional[str] = ...,
choices: Optional[_FieldChoices] = ...,
help_text: str = ...,
db_column: Optional[str] = ...,
db_tablespace: Optional[str] = ...,
validators: Iterable[_ValidatorCallable] = ...,
error_messages: Optional[_ErrorMessagesToOverride] = ...,
): ...
class SlugField(CharField[_ST, _GT]):
def __init__(
self,
verbose_name: Optional[Union[str, bytes]] = ...,
name: Optional[str] = ...,
primary_key: bool = ...,
max_length: Optional[int] = ...,
allow_unicode: bool = ...,
unique: bool = ...,
blank: bool = ...,
null: bool = ...,
db_index: bool = ...,
default: Any = ...,
editable: bool = ...,
auto_created: bool = ...,
serialize: bool = ...,
unique_for_date: Optional[str] = ...,
unique_for_month: Optional[str] = ...,
unique_for_year: Optional[str] = ...,
choices: Optional[_FieldChoices] = ...,
help_text: str = ...,
db_column: Optional[str] = ...,
db_tablespace: Optional[str] = ...,
validators: Iterable[_ValidatorCallable] = ...,
error_messages: Optional[_ErrorMessagesToOverride] = ...,
): ...
class EmailField(CharField[_ST, _GT]): ...
class URLField(CharField[_ST, _GT]): ...
class TextField(Field[_ST, _GT]):
_pyi_private_set_type: Union[str, Combinable]
_pyi_private_get_type: str
# objects are converted to string before comparison
_pyi_lookup_exact_type: Any
class BooleanField(Field[_ST, _GT]):
_pyi_private_set_type: Union[bool, Combinable]
_pyi_private_get_type: bool
_pyi_lookup_exact_type: bool
class NullBooleanField(Field[_ST, _GT]):
_pyi_private_set_type: Optional[Union[bool, Combinable]]
_pyi_private_get_type: Optional[bool]
_pyi_lookup_exact_type: Optional[bool]
class IPAddressField(Field[_ST, _GT]):
_pyi_private_set_type: Union[str, Combinable]
_pyi_private_get_type: str
class GenericIPAddressField(Field[_ST, _GT]):
_pyi_private_set_type: Union[str, int, Callable[..., Any], Combinable]
_pyi_private_get_type: str
default_error_messages: Any = ...
unpack_ipv4: Any = ...
protocol: Any = ...
def __init__(
self,
verbose_name: Optional[Any] = ...,
name: Optional[Any] = ...,
protocol: str = ...,
unpack_ipv4: bool = ...,
primary_key: bool = ...,
unique: bool = ...,
blank: bool = ...,
null: bool = ...,
db_index: bool = ...,
default: Any = ...,
editable: bool = ...,
auto_created: bool = ...,
serialize: bool = ...,
choices: Optional[_FieldChoices] = ...,
help_text: str = ...,
db_column: Optional[str] = ...,
db_tablespace: Optional[str] = ...,
validators: Iterable[_ValidatorCallable] = ...,
error_messages: Optional[_ErrorMessagesToOverride] = ...,
) -> None: ...
class DateTimeCheckMixin: ...
class DateField(DateTimeCheckMixin, Field[_ST, _GT]):
_pyi_private_set_type: Union[str, date, Combinable]
_pyi_private_get_type: date
_pyi_lookup_exact_type: Union[str, date]
def __init__(
self,
verbose_name: Optional[Union[str, bytes]] = ...,
name: Optional[str] = ...,
auto_now: bool = ...,
auto_now_add: bool = ...,
primary_key: bool = ...,
max_length: Optional[int] = ...,
unique: bool = ...,
blank: bool = ...,
null: bool = ...,
db_index: bool = ...,
default: Any = ...,
editable: bool = ...,
auto_created: bool = ...,
serialize: bool = ...,
choices: Optional[_FieldChoices] = ...,
help_text: str = ...,
db_column: Optional[str] = ...,
db_tablespace: Optional[str] = ...,
validators: Iterable[_ValidatorCallable] = ...,
error_messages: Optional[_ErrorMessagesToOverride] = ...,
): ...
class TimeField(DateTimeCheckMixin, Field[_ST, _GT]):
_pyi_private_set_type: Union[str, time, datetime, Combinable]
_pyi_private_get_type: time
def __init__(
self,
verbose_name: Optional[Union[str, bytes]] = ...,
name: Optional[str] = ...,
auto_now: bool = ...,
auto_now_add: bool = ...,
primary_key: bool = ...,
unique: bool = ...,
blank: bool = ...,
null: bool = ...,
db_index: bool = ...,
default: Any = ...,
editable: bool = ...,
auto_created: bool = ...,
serialize: bool = ...,
choices: Optional[_FieldChoices] = ...,
help_text: str = ...,
db_column: Optional[str] = ...,
db_tablespace: Optional[str] = ...,
validators: Iterable[_ValidatorCallable] = ...,
error_messages: Optional[_ErrorMessagesToOverride] = ...,
): ...
class DateTimeField(DateField[_ST, _GT]):
_pyi_private_get_type: datetime
_pyi_lookup_exact_type: Union[str, datetime]
class UUIDField(Field[_ST, _GT]):
_pyi_private_set_type: Union[str, uuid.UUID]
_pyi_private_get_type: uuid.UUID
class FilePathField(Field[_ST, _GT]):
path: Any = ...
match: Optional[str] = ...
recursive: bool = ...
allow_files: bool = ...
allow_folders: bool = ...
def __init__(
self,
path: Union[str, Callable[..., str]] = ...,
match: Optional[str] = ...,
recursive: bool = ...,
allow_files: bool = ...,
allow_folders: bool = ...,
verbose_name: Optional[str] = ...,
name: Optional[str] = ...,
primary_key: bool = ...,
max_length: int = ...,
unique: bool = ...,
blank: bool = ...,
null: bool = ...,
db_index: bool = ...,
default: Any = ...,
editable: bool = ...,
auto_created: bool = ...,
serialize: bool = ...,
choices: Optional[_FieldChoices] = ...,
help_text: str = ...,
db_column: Optional[str] = ...,
db_tablespace: Optional[str] = ...,
validators: Iterable[_ValidatorCallable] = ...,
error_messages: Optional[_ErrorMessagesToOverride] = ...,
): ...
class BinaryField(Field[_ST, _GT]):
_pyi_private_get_type: bytes
class DurationField(Field[_ST, _GT]):
_pyi_private_get_type: timedelta
class BigAutoField(AutoField[_ST, _GT]): ...
class CommaSeparatedIntegerField(CharField[_ST, _GT]): ...
| 13,788 | Python | .py | 376 | 30.25266 | 101 | 0.579042 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,506 | related_lookups.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/fields/related_lookups.pyi | from collections import OrderedDict
from typing import Any, List, Tuple, Type, Iterable
from django.db.models.expressions import Expression
from django.db.models.lookups import (
BuiltinLookup,
Exact,
GreaterThan,
GreaterThanOrEqual,
In,
IsNull,
LessThan,
LessThanOrEqual,
)
from django.db.models.fields import Field
class MultiColSource:
alias: str
field: Field
sources: Tuple[Field, Field]
targets: Tuple[Field, Field]
contains_aggregate: bool = ...
output_field: Field = ...
def __init__(
self, alias: str, targets: Tuple[Field, Field], sources: Tuple[Field, Field], field: Field
) -> None: ...
def relabeled_clone(self, relabels: OrderedDict) -> MultiColSource: ...
def get_lookup(self, lookup: str) -> Type[BuiltinLookup]: ...
def get_normalized_value(value: Any, lhs: Expression) -> Tuple[None]: ...
class RelatedIn(In):
bilateral_transforms: List[Any]
lhs: Expression
rhs: Any = ...
def get_prep_lookup(self) -> Iterable[Any]: ...
class RelatedLookupMixin:
rhs: Any = ...
def get_prep_lookup(self) -> Any: ...
class RelatedExact(RelatedLookupMixin, Exact): ...
class RelatedLessThan(RelatedLookupMixin, LessThan): ...
class RelatedGreaterThan(RelatedLookupMixin, GreaterThan): ...
class RelatedGreaterThanOrEqual(RelatedLookupMixin, GreaterThanOrEqual): ...
class RelatedLessThanOrEqual(RelatedLookupMixin, LessThanOrEqual): ...
class RelatedIsNull(RelatedLookupMixin, IsNull): ...
| 1,500 | Python | .py | 41 | 32.878049 | 98 | 0.725207 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,507 | related.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/fields/related.pyi | from typing import Any, Callable, Dict, Iterable, List, Optional, Sequence, Tuple, Type, TypeVar, Union, overload
from uuid import UUID
from django.db import models
from django.db.models.base import Model
from django.db.models.fields import Field
from django.db.models.query_utils import Q, PathInfo
from django.db.models.manager import RelatedManager
from django.db.models.expressions import Combinable
from django.db.models.fields.mixins import FieldCacheMixin
from django.db.models.fields.related_descriptors import ( # noqa: F401
ForwardOneToOneDescriptor as ForwardOneToOneDescriptor,
ForwardManyToOneDescriptor as ForwardManyToOneDescriptor,
ManyToManyDescriptor as ManyToManyDescriptor,
ReverseOneToOneDescriptor as ReverseOneToOneDescriptor,
ReverseManyToOneDescriptor as ReverseManyToOneDescriptor,
)
from django.db.models.fields.reverse_related import ( # noqa: F401
ForeignObjectRel as ForeignObjectRel,
OneToOneRel as OneToOneRel,
ManyToOneRel as ManyToOneRel,
ManyToManyRel as ManyToManyRel,
)
_T = TypeVar("_T", bound=models.Model)
_F = TypeVar("_F", bound=models.Field)
_Choice = Tuple[Any, str]
_ChoiceNamedGroup = Tuple[str, Iterable[_Choice]]
_FieldChoices = Iterable[Union[_Choice, _ChoiceNamedGroup]]
_ValidatorCallable = Callable[..., None]
_ErrorMessagesToOverride = Dict[str, Any]
RECURSIVE_RELATIONSHIP_CONSTANT: str = ...
# __set__ value type
_ST = TypeVar("_ST")
# __get__ return type
_GT = TypeVar("_GT")
class RelatedField(FieldCacheMixin, Field[_ST, _GT]):
one_to_many: bool = ...
one_to_one: bool = ...
many_to_many: bool = ...
many_to_one: bool = ...
related_model: Type[Model]
opts: Any = ...
def get_forward_related_filter(self, obj: Model) -> Dict[str, Union[int, UUID]]: ...
def get_reverse_related_filter(self, obj: Model) -> Q: ...
@property
def swappable_setting(self) -> Optional[str]: ...
def set_attributes_from_rel(self) -> None: ...
def do_related_class(self, other: Type[Model], cls: Type[Model]) -> None: ...
def get_limit_choices_to(self) -> Dict[str, int]: ...
def related_query_name(self) -> str: ...
@property
def target_field(self) -> Field: ...
class ForeignObject(RelatedField[_ST, _GT]):
def __init__(
self,
to: Union[Type[Model], str],
on_delete: Callable[..., None],
from_fields: Sequence[str],
to_fields: Sequence[str],
rel: Optional[ForeignObjectRel] = ...,
related_name: Optional[str] = ...,
related_query_name: Optional[str] = ...,
limit_choices_to: Optional[Union[Dict[str, Any], Callable[[], Any]]] = ...,
parent_link: bool = ...,
db_constraint: bool = ...,
swappable: bool = ...,
verbose_name: Optional[str] = ...,
name: Optional[str] = ...,
primary_key: bool = ...,
unique: bool = ...,
blank: bool = ...,
null: bool = ...,
db_index: bool = ...,
default: Any = ...,
editable: bool = ...,
auto_created: bool = ...,
serialize: bool = ...,
choices: Optional[_FieldChoices] = ...,
help_text: str = ...,
db_column: Optional[str] = ...,
db_tablespace: Optional[str] = ...,
validators: Iterable[_ValidatorCallable] = ...,
error_messages: Optional[_ErrorMessagesToOverride] = ...,
): ...
class ForeignKey(ForeignObject[_ST, _GT]):
_pyi_private_set_type: Union[Any, Combinable]
_pyi_private_get_type: Any
def __init__(
self,
to: Union[Type[Model], str],
on_delete: Callable[..., None],
to_field: Optional[str] = ...,
related_name: Optional[str] = ...,
related_query_name: Optional[str] = ...,
limit_choices_to: Optional[Union[Dict[str, Any], Callable[[], Any], Q]] = ...,
parent_link: bool = ...,
db_constraint: bool = ...,
verbose_name: Optional[Union[str, bytes]] = ...,
name: Optional[str] = ...,
primary_key: bool = ...,
max_length: Optional[int] = ...,
unique: bool = ...,
blank: bool = ...,
null: bool = ...,
db_index: bool = ...,
default: Any = ...,
editable: bool = ...,
auto_created: bool = ...,
serialize: bool = ...,
unique_for_date: Optional[str] = ...,
unique_for_month: Optional[str] = ...,
unique_for_year: Optional[str] = ...,
choices: Optional[_FieldChoices] = ...,
help_text: str = ...,
db_column: Optional[str] = ...,
db_tablespace: Optional[str] = ...,
validators: Iterable[_ValidatorCallable] = ...,
error_messages: Optional[_ErrorMessagesToOverride] = ...,
): ...
# class access
@overload # type: ignore
def __get__(self, instance: None, owner) -> ForwardManyToOneDescriptor: ...
# Model instance access
@overload
def __get__(self, instance: Model, owner) -> _GT: ...
# non-Model instances
@overload
def __get__(self: _F, instance, owner) -> _F: ...
class OneToOneField(RelatedField[_ST, _GT]):
_pyi_private_set_type: Union[Any, Combinable]
_pyi_private_get_type: Any
def __init__(
self,
to: Union[Type[Model], str],
on_delete: Any,
to_field: Optional[str] = ...,
related_name: Optional[str] = ...,
related_query_name: Optional[str] = ...,
limit_choices_to: Optional[Union[Dict[str, Any], Callable[[], Any], Q]] = ...,
parent_link: bool = ...,
db_constraint: bool = ...,
verbose_name: Optional[Union[str, bytes]] = ...,
name: Optional[str] = ...,
primary_key: bool = ...,
max_length: Optional[int] = ...,
unique: bool = ...,
blank: bool = ...,
null: bool = ...,
db_index: bool = ...,
default: Any = ...,
editable: bool = ...,
auto_created: bool = ...,
serialize: bool = ...,
unique_for_date: Optional[str] = ...,
unique_for_month: Optional[str] = ...,
unique_for_year: Optional[str] = ...,
choices: Optional[_FieldChoices] = ...,
help_text: str = ...,
db_column: Optional[str] = ...,
db_tablespace: Optional[str] = ...,
validators: Iterable[_ValidatorCallable] = ...,
error_messages: Optional[_ErrorMessagesToOverride] = ...,
): ...
# class access
@overload # type: ignore
def __get__(self, instance: None, owner) -> ForwardOneToOneDescriptor: ...
# Model instance access
@overload
def __get__(self, instance: Model, owner) -> _GT: ...
# non-Model instances
@overload
def __get__(self: _F, instance, owner) -> _F: ...
class ManyToManyField(RelatedField[_ST, _GT]):
_pyi_private_set_type: Sequence[Any]
_pyi_private_get_type: RelatedManager[Any]
rel_class: Any = ...
description: Any = ...
has_null_arg: Any = ...
swappable: bool = ...
def __init__(
self,
to: Union[Type[_T], str],
related_name: Optional[str] = ...,
related_query_name: Optional[str] = ...,
limit_choices_to: Optional[Union[Dict[str, Any], Callable[[], Any], Q]] = ...,
symmetrical: Optional[bool] = ...,
through: Optional[Union[str, Type[Model]]] = ...,
through_fields: Optional[Tuple[str, str]] = ...,
db_constraint: bool = ...,
db_table: Optional[str] = ...,
swappable: bool = ...,
verbose_name: Optional[Union[str, bytes]] = ...,
name: Optional[str] = ...,
primary_key: bool = ...,
max_length: Optional[int] = ...,
unique: bool = ...,
blank: bool = ...,
null: bool = ...,
db_index: bool = ...,
default: Any = ...,
editable: bool = ...,
auto_created: bool = ...,
serialize: bool = ...,
unique_for_date: Optional[str] = ...,
unique_for_month: Optional[str] = ...,
unique_for_year: Optional[str] = ...,
choices: Optional[_FieldChoices] = ...,
help_text: str = ...,
db_column: Optional[str] = ...,
db_tablespace: Optional[str] = ...,
validators: Iterable[_ValidatorCallable] = ...,
error_messages: Optional[_ErrorMessagesToOverride] = ...,
) -> None: ...
# class access
@overload # type: ignore
def __get__(self, instance: None, owner) -> ManyToManyDescriptor: ...
# Model instance access
@overload
def __get__(self, instance: Model, owner) -> _GT: ...
# non-Model instances
@overload
def __get__(self: _F, instance, owner) -> _F: ...
def get_path_info(self, filtered_relation: None = ...) -> List[PathInfo]: ...
def get_reverse_path_info(self, filtered_relation: None = ...) -> List[PathInfo]: ...
def contribute_to_related_class(self, cls: Type[Model], related: RelatedField) -> None: ...
def m2m_db_table(self) -> str: ...
def m2m_column_name(self) -> str: ...
def m2m_reverse_name(self) -> str: ...
def m2m_reverse_field_name(self) -> str: ...
def m2m_target_field_name(self) -> str: ...
def m2m_reverse_target_field_name(self) -> str: ...
def create_many_to_many_intermediary_model(field: Type[Field], klass: Type[Model]) -> Type[Model]: ...
| 9,289 | Python | .py | 231 | 33.601732 | 113 | 0.586779 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,508 | related_descriptors.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/fields/related_descriptors.pyi | from typing import Any, Callable, List, Optional, Tuple, Type, Union, Generic, TypeVar
from django.core.exceptions import ObjectDoesNotExist
from django.db.models.base import Model
from django.db.models.fields.mixins import FieldCacheMixin
from django.db.models.fields.related import RelatedField, OneToOneField
from django.db.models.fields.reverse_related import ManyToManyRel, OneToOneRel
from django.db.models.query import QuerySet
from django.db.models.fields import Field
_T = TypeVar("_T")
class ForwardManyToOneDescriptor:
RelatedObjectDoesNotExist: Type[ObjectDoesNotExist]
field: Field = ...
def __init__(self, field_with_rel: Field) -> None: ...
def is_cached(self, instance: Model) -> bool: ...
def get_queryset(self, **hints: Any) -> QuerySet: ...
def get_prefetch_queryset(
self, instances: List[Model], queryset: Optional[QuerySet] = ...
) -> Tuple[QuerySet, Callable, Callable, bool, str, bool]: ...
def get_object(self, instance: Model) -> Model: ...
def __get__(
self, instance: Optional[Model], cls: Type[Model] = ...
) -> Optional[Union[Model, ForwardManyToOneDescriptor]]: ...
def __set__(self, instance: Model, value: Optional[Model]) -> None: ...
def __reduce__(self) -> Tuple[Callable, Tuple[Type[Model], str]]: ...
class ForwardOneToOneDescriptor(ForwardManyToOneDescriptor):
RelatedObjectDoesNotExist: Type[ObjectDoesNotExist]
field: OneToOneField
def get_object(self, instance: Model) -> Model: ...
class ReverseOneToOneDescriptor:
RelatedObjectDoesNotExist: Type[ObjectDoesNotExist]
related: OneToOneRel = ...
def __init__(self, related: OneToOneRel) -> None: ...
def is_cached(self, instance: Model) -> bool: ...
def get_queryset(self, **hints: Any) -> QuerySet: ...
def get_prefetch_queryset(
self, instances: List[Model], queryset: Optional[QuerySet] = ...
) -> Tuple[QuerySet, Callable, Callable, bool, str, bool]: ...
def __get__(self, instance: Optional[Model], cls: Type[Model] = ...) -> Union[Model, ReverseOneToOneDescriptor]: ...
def __set__(self, instance: Model, value: Optional[Model]) -> None: ...
def __reduce__(self) -> Tuple[Callable, Tuple[Type[Model], str]]: ...
class ReverseManyToOneDescriptor:
rel: FieldCacheMixin = ...
field: FieldCacheMixin = ...
def __init__(self, rel: FieldCacheMixin) -> None: ...
def related_manager_cls(self): ...
def __get__(self, instance: Optional[Model], cls: Type[Model] = ...) -> ReverseManyToOneDescriptor: ...
def __set__(self, instance: Model, value: List[Model]) -> Any: ...
def create_reverse_many_to_one_manager(superclass: Any, rel: Any): ...
class ManyToManyDescriptor(ReverseManyToOneDescriptor):
field: RelatedField
rel: ManyToManyRel
reverse: bool = ...
def __init__(self, rel: ManyToManyRel, reverse: bool = ...) -> None: ...
@property
def through(self) -> Type[Model]: ...
def related_manager_cls(self): ...
class _ForwardManyToManyManager(Generic[_T]):
def all(self) -> QuerySet: ...
def create_forward_many_to_many_manager(superclass: Any, rel: Any, reverse: Any) -> _ForwardManyToManyManager: ...
| 3,184 | Python | .py | 59 | 49.728814 | 120 | 0.692036 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,509 | files.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/fields/files.pyi | from pathlib import Path
from typing import Any, Callable, Iterable, Optional, Type, TypeVar, Union, overload
from django.core.files.base import File
from django.core.files.images import ImageFile
from django.core.files.storage import FileSystemStorage, Storage
from django.db.models.base import Model
from django.db.models.fields import Field, _FieldChoices, _ValidatorCallable, _ErrorMessagesToOverride
class FieldFile(File):
instance: Model = ...
field: FileField = ...
storage: FileSystemStorage = ...
def __init__(self, instance: Model, field: FileField, name: Optional[str]) -> None: ...
file: Any = ...
@property
def path(self) -> str: ...
@property
def url(self) -> str: ...
@property
def size(self) -> int: ...
def save(self, name: str, content: File, save: bool = ...) -> None: ...
def delete(self, save: bool = ...) -> None: ...
@property
def closed(self) -> bool: ...
class FileDescriptor:
field: FileField = ...
def __init__(self, field: FileField) -> None: ...
def __set__(self, instance: Model, value: Optional[Any]) -> None: ...
def __get__(self, instance: Optional[Model], cls: Type[Model] = ...) -> Union[FieldFile, FileDescriptor]: ...
_T = TypeVar("_T", bound="Field")
class FileField(Field):
storage: Any = ...
upload_to: Union[str, Callable] = ...
def __init__(
self,
upload_to: Union[str, Callable, Path] = ...,
storage: Optional[Storage] = ...,
verbose_name: Optional[Union[str, bytes]] = ...,
name: Optional[str] = ...,
max_length: Optional[int] = ...,
unique: bool = ...,
blank: bool = ...,
null: bool = ...,
db_index: bool = ...,
default: Any = ...,
editable: bool = ...,
auto_created: bool = ...,
serialize: bool = ...,
unique_for_date: Optional[str] = ...,
unique_for_month: Optional[str] = ...,
unique_for_year: Optional[str] = ...,
choices: Optional[_FieldChoices] = ...,
help_text: str = ...,
db_column: Optional[str] = ...,
db_tablespace: Optional[str] = ...,
validators: Iterable[_ValidatorCallable] = ...,
error_messages: Optional[_ErrorMessagesToOverride] = ...,
): ...
# class access
@overload # type: ignore
def __get__(self, instance: None, owner) -> FileDescriptor: ...
# Model instance access
@overload
def __get__(self, instance: Model, owner) -> Any: ...
# non-Model instances
@overload
def __get__(self: _T, instance, owner) -> _T: ...
def generate_filename(self, instance: Optional[Model], filename: str) -> str: ...
class ImageFileDescriptor(FileDescriptor):
field: ImageField
def __set__(self, instance: Model, value: Optional[str]) -> None: ...
class ImageFieldFile(ImageFile, FieldFile):
field: ImageField
def delete(self, save: bool = ...) -> None: ...
class ImageField(FileField):
def __init__(
self,
verbose_name: Optional[str] = ...,
name: Optional[str] = ...,
width_field: Optional[str] = ...,
height_field: Optional[str] = ...,
**kwargs: Any
) -> None: ...
# class access
@overload # type: ignore
def __get__(self, instance: None, owner) -> ImageFileDescriptor: ...
# Model instance access
@overload
def __get__(self, instance: Model, owner) -> Any: ...
# non-Model instances
@overload
def __get__(self: _T, instance, owner) -> _T: ...
def update_dimension_fields(self, instance: Model, force: bool = ..., *args: Any, **kwargs: Any) -> None: ...
| 3,640 | Python | .py | 92 | 33.815217 | 113 | 0.596779 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,510 | mixins.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/fields/mixins.pyi | from typing import Any, Optional
from django.db.models.base import Model
NOT_PROVIDED: Any
class FieldCacheMixin:
def get_cache_name(self) -> str: ...
def get_cached_value(self, instance: Model, default: Any = ...) -> Optional[Model]: ...
def is_cached(self, instance: Model) -> bool: ...
def set_cached_value(self, instance: Model, value: Optional[Model]) -> None: ...
def delete_cached_value(self, instance: Model) -> None: ...
| 453 | Python | .py | 9 | 46.777778 | 91 | 0.684807 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,511 | proxy.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/fields/proxy.pyi | from typing import Any
from django.db.models import fields
class OrderWrt(fields.IntegerField):
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
| 161 | Python | .py | 4 | 37.75 | 62 | 0.716129 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,512 | math.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/functions/math.pyi | from django.db.models.expressions import Func
from django.db.models.functions.mixins import FixDecimalInputMixin, NumericOutputFieldMixin
from django.db.models.lookups import Transform
class Abs(Transform): ...
class ACos(NumericOutputFieldMixin, Transform): ...
class ASin(NumericOutputFieldMixin, Transform): ...
class ATan(NumericOutputFieldMixin, Transform): ...
class ATan2(NumericOutputFieldMixin, Func): ...
class Ceil(Transform): ...
class Cos(NumericOutputFieldMixin, Transform): ...
class Cot(NumericOutputFieldMixin, Transform): ...
class Degrees(NumericOutputFieldMixin, Transform): ...
class Exp(NumericOutputFieldMixin, Transform): ...
class Floor(Transform): ...
class Ln(NumericOutputFieldMixin, Transform): ...
class Log(FixDecimalInputMixin, NumericOutputFieldMixin, Func): ...
class Mod(FixDecimalInputMixin, NumericOutputFieldMixin, Func): ...
class Pi(NumericOutputFieldMixin, Func): ...
class Power(NumericOutputFieldMixin, Func): ...
class Radians(NumericOutputFieldMixin, Transform): ...
class Round(Transform): ...
class Sin(NumericOutputFieldMixin, Transform): ...
class Sqrt(NumericOutputFieldMixin, Transform): ...
class Tan(NumericOutputFieldMixin, Transform): ...
class Sign(Transform): ...
| 1,222 | Python | .py | 25 | 47.84 | 91 | 0.803512 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,513 | __init__.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/functions/__init__.pyi | from .text import (
Lower as Lower,
Upper as Upper,
Length as Length,
Chr as Chr,
Concat as Concat,
ConcatPair as ConcatPair,
Left as Left,
Right as Right,
LPad as LPad,
RPad as RPad,
LTrim as LTrim,
RTrim as RTrim,
Trim as Trim,
Ord as Ord,
Repeat as Repeat,
SHA1 as SHA1,
SHA224 as SHA224,
SHA256 as SHA256,
SHA384 as SHA384,
SHA512 as SHA512,
StrIndex as StrIndex,
Substr as Substr,
Replace as Replace,
Reverse as Reverse,
)
from .window import (
CumeDist as CumeDist,
DenseRank as DenseRank,
FirstValue as FirstValue,
Lag as Lag,
LastValue as LastValue,
Lead as Lead,
NthValue as NthValue,
Ntile as Ntile,
PercentRank as PercentRank,
Rank as Rank,
RowNumber as RowNumber,
)
from .datetime import (
Extract as Extract,
ExtractDay as ExtractDay,
ExtractHour as ExtractHour,
ExtractMinute as ExtractMinute,
ExtractSecond as ExtractSecond,
ExtractMonth as ExtractMonth,
ExtractQuarter as ExtractQuarter,
ExtractWeek as ExtractWeek,
ExtractWeekDay as ExtractWeekDay,
ExtractYear as ExtractYear,
ExtractIsoYear as ExtractIsoYear,
Trunc as Trunc,
TruncDate as TruncDate,
TruncDay as TruncDay,
TruncHour as TruncHour,
TruncMinute as TruncMinute,
TruncQuarter as TruncQuarter,
TruncMonth as TruncMonth,
TruncSecond as TruncSecond,
TruncTime as TruncTime,
TruncWeek as TruncWeek,
TruncYear as TruncYear,
Now as Now,
)
from .comparison import Coalesce as Coalesce, Greatest as Greatest, Least as Least, Cast as Cast, NullIf as NullIf
from .math import (
Abs as Abs,
ACos as ACos,
ASin as ASin,
ATan as ATan,
ATan2 as ATan2,
Ceil as Ceil,
Cos as Cos,
Cot as Cot,
Degrees as Degrees,
Floor as Floor,
Exp as Exp,
Ln as Ln,
Log as Log,
Mod as Mod,
Pi as Pi,
Power as Power,
Radians as Radians,
Round as Round,
Sign as Sign,
Sin as Sin,
Sqrt as Sqrt,
Tan as Tan,
)
| 2,077 | Python | .py | 89 | 18.696629 | 114 | 0.694556 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,514 | datetime.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/functions/datetime.pyi | from typing import Any, Optional
from django.db.models import Func, Transform
class TimezoneMixin:
tzinfo: Any = ...
def get_tzname(self) -> Optional[str]: ...
class Extract(TimezoneMixin, Transform): ...
class ExtractYear(Extract): ...
class ExtractIsoYear(Extract): ...
class ExtractMonth(Extract): ...
class ExtractDay(Extract): ...
class ExtractWeek(Extract): ...
class ExtractWeekDay(Extract): ...
class ExtractQuarter(Extract): ...
class ExtractHour(Extract): ...
class ExtractMinute(Extract): ...
class ExtractSecond(Extract): ...
class Now(Func): ...
class TruncBase(TimezoneMixin, Transform): ...
class Trunc(TruncBase): ...
class TruncYear(TruncBase): ...
class TruncQuarter(TruncBase): ...
class TruncMonth(TruncBase): ...
class TruncWeek(TruncBase): ...
class TruncDay(TruncBase): ...
class TruncDate(TruncBase): ...
class TruncTime(TruncBase): ...
class TruncHour(TruncBase): ...
class TruncMinute(TruncBase): ...
class TruncSecond(TruncBase): ...
| 972 | Python | .py | 29 | 32.137931 | 46 | 0.743617 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,515 | window.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/functions/window.pyi | from typing import Any, Optional
from django.db.models import Func
class CumeDist(Func): ...
class DenseRank(Func): ...
class FirstValue(Func): ...
class LagLeadFunction(Func):
def __init__(
self, expression: Optional[str], offset: int = ..., default: Optional[int] = ..., **extra: Any
) -> None: ...
class Lag(LagLeadFunction): ...
class LastValue(Func): ...
class Lead(LagLeadFunction): ...
class NthValue(Func):
def __init__(self, expression: Optional[str], nth: int = ..., **extra: Any) -> None: ...
class Ntile(Func):
def __init__(self, num_buckets: int = ..., **extra: Any) -> None: ...
class PercentRank(Func): ...
class Rank(Func): ...
class RowNumber(Func): ...
| 702 | Python | .py | 19 | 34.315789 | 102 | 0.64645 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,516 | comparison.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/functions/comparison.pyi | from typing import Any, Union
from django.db.models import Func
from django.db.models.fields import Field
class Cast(Func):
def __init__(self, expression: Any, output_field: Union[str, Field]) -> None: ...
class Coalesce(Func): ...
class Greatest(Func): ...
class Least(Func): ...
class NullIf(Func): ...
| 312 | Python | .py | 9 | 32.888889 | 85 | 0.716667 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,517 | text.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/functions/text.pyi | from typing import Any, List, Optional, Tuple, Union
from django.db.backends.sqlite3.base import DatabaseWrapper
from django.db.models.expressions import Combinable, Expression, Value
from django.db.models.sql.compiler import SQLCompiler
from django.db.models import Func, Transform
class BytesToCharFieldConversionMixin: ...
class Chr(Transform): ...
class ConcatPair(Func):
def coalesce(self) -> ConcatPair: ...
class Concat(Func): ...
class Left(Func):
def __init__(self, expression: str, length: Union[Value, int], **extra: Any) -> None: ...
def get_substr(self) -> Substr: ...
def use_substr(
self, compiler: SQLCompiler, connection: DatabaseWrapper, **extra_context: Any
) -> Tuple[str, List[int]]: ...
class Length(Transform): ...
class Lower(Transform): ...
class LPad(BytesToCharFieldConversionMixin, Func):
def __init__(
self, expression: str, length: Optional[Union[Length, int]], fill_text: Value = ..., **extra: Any
) -> None: ...
class LTrim(Transform): ...
class Ord(Transform): ...
class Repeat(BytesToCharFieldConversionMixin, Func):
def __init__(self, expression: Union[Value, str], number: Optional[Union[Length, int]], **extra: Any) -> None: ...
class Replace(Func):
def __init__(self, expression: Combinable, text: Value, replacement: Value = ..., **extra: Any) -> None: ...
class Right(Left): ...
class RPad(LPad): ...
class RTrim(Transform): ...
class StrIndex(Func): ...
class Substr(Func):
def __init__(
self,
expression: Union[Expression, str],
pos: Union[Expression, int],
length: Optional[Union[Value, int]] = ...,
**extra: Any
) -> None: ...
class Trim(Transform): ...
class Upper(Transform): ...
class Reverse(Transform): ...
class MySQLSHA2Mixin: ...
class OracleHashMixin: ...
class PostgreSQLSHAMixin: ...
class SHA1(OracleHashMixin, PostgreSQLSHAMixin, Transform): ...
class SHA224(MySQLSHA2Mixin, PostgreSQLSHAMixin, Transform): ...
class SHA256(MySQLSHA2Mixin, OracleHashMixin, PostgreSQLSHAMixin, Transform): ...
class SHA384(MySQLSHA2Mixin, OracleHashMixin, PostgreSQLSHAMixin, Transform): ...
class SHA512(MySQLSHA2Mixin, OracleHashMixin, PostgreSQLSHAMixin, Transform): ...
| 2,228 | Python | .py | 51 | 40.45098 | 118 | 0.706889 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,518 | subqueries.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/sql/subqueries.pyi | from typing import Any, Dict, Iterable, List, Optional, Tuple, Type, Union
from django.db.models.base import Model
from django.db.models.expressions import Case
from django.db.models.query import QuerySet
from django.db.models.sql.query import Query
from django.db.models.sql.where import WhereNode
from django.db.models.fields import Field
class DeleteQuery(Query):
select: Tuple
where_class: Type[WhereNode]
where: WhereNode = ...
def do_query(self, table: str, where: WhereNode, using: str) -> int: ...
def delete_batch(self, pk_list: Union[List[int], List[str]], using: str) -> int: ...
def delete_qs(self, query: QuerySet, using: str) -> int: ...
class UpdateQuery(Query):
select: Tuple
where_class: Type[WhereNode]
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
where: WhereNode = ...
def update_batch(self, pk_list: List[int], values: Dict[str, Optional[int]], using: str) -> None: ...
def add_update_values(self, values: Dict[str, Any]) -> None: ...
def add_update_fields(self, values_seq: List[Tuple[Field, Optional[Type[Model]], Case]]) -> None: ...
def add_related_update(self, model: Type[Model], field: Field, value: Union[int, str]) -> None: ...
def get_related_updates(self) -> List[UpdateQuery]: ...
class InsertQuery(Query):
select: Tuple
where: WhereNode
where_class: Type[WhereNode]
fields: Iterable[Field] = ...
objs: List[Model] = ...
raw: bool = ...
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
def insert_values(self, fields: Iterable[Field], objs: List[Model], raw: bool = ...) -> None: ...
class AggregateQuery(Query):
select: Tuple
sub_params: Tuple
where: WhereNode
where_class: Type[WhereNode]
def add_subquery(self, query: Query, using: str) -> None: ...
| 1,828 | Python | .py | 39 | 42.846154 | 105 | 0.673023 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,519 | datastructures.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/sql/datastructures.pyi | from collections import OrderedDict
from typing import Any, Dict, List, Optional, Tuple, Union
from django.db.models.fields.mixins import FieldCacheMixin
from django.db.models.query_utils import FilteredRelation, PathInfo
from django.db.models.sql.compiler import SQLCompiler
class MultiJoin(Exception):
level: int = ...
names_with_path: List[Tuple[str, List[PathInfo]]] = ...
def __init__(self, names_pos: int, path_with_names: List[Tuple[str, List[PathInfo]]]) -> None: ...
class Empty: ...
class Join:
table_name: str = ...
parent_alias: str = ...
table_alias: Optional[str] = ...
join_type: str = ...
join_cols: Tuple = ...
join_field: FieldCacheMixin = ...
nullable: bool = ...
filtered_relation: Optional[FilteredRelation] = ...
def __init__(
self,
table_name: str,
parent_alias: str,
table_alias: Optional[str],
join_type: str,
join_field: FieldCacheMixin,
nullable: bool,
filtered_relation: Optional[FilteredRelation] = ...,
) -> None: ...
def as_sql(self, compiler: SQLCompiler, connection: Any) -> Tuple[str, List[Union[int, str]]]: ...
def relabeled_clone(self, change_map: Union[Dict[str, str], OrderedDict]) -> Join: ...
def equals(self, other: Union[BaseTable, Join], with_filtered_relation: bool) -> bool: ...
def demote(self) -> Join: ...
def promote(self) -> Join: ...
class BaseTable:
join_type: Any = ...
parent_alias: Any = ...
filtered_relation: Any = ...
table_name: str = ...
table_alias: Optional[str] = ...
def __init__(self, table_name: str, alias: Optional[str]) -> None: ...
def as_sql(self, compiler: SQLCompiler, connection: Any) -> Tuple[str, List[Any]]: ...
def relabeled_clone(self, change_map: OrderedDict) -> BaseTable: ...
def equals(self, other: Join, with_filtered_relation: bool) -> bool: ...
| 1,909 | Python | .py | 44 | 38.363636 | 102 | 0.643548 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,520 | __init__.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/sql/__init__.pyi | from .query import Query as Query, RawQuery as RawQuery
from .subqueries import (
InsertQuery as InsertQuery,
AggregateQuery as AggregateQuery,
DeleteQuery as DeleteQuery,
UpdateQuery as UpdateQuery,
)
| 219 | Python | .py | 7 | 27.857143 | 55 | 0.791469 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,521 | constants.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/sql/constants.pyi | from typing import Dict, Pattern, Tuple
GET_ITERATOR_CHUNK_SIZE: int = ...
MULTI: str = ...
SINGLE: str = ...
CURSOR: str = ...
NO_RESULTS: str = ...
ORDER_PATTERN: Pattern = ...
ORDER_DIR: Dict[str, Tuple[str, str]] = ...
INNER: str = ...
LOUTER: str = ...
| 262 | Python | .py | 10 | 24.8 | 43 | 0.625 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,522 | where.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/sql/where.pyi | from collections import OrderedDict
from typing import Any, Dict, List, Optional, Tuple, Union
from django.db.models.expressions import Expression
from django.db.models.sql.compiler import SQLCompiler
from django.db.models.sql.query import Query
from django.utils import tree
AND: str
OR: str
class WhereNode(tree.Node):
connector: str
contains_aggregate: bool
contains_over_clause: bool
negated: bool
default: Any = ...
resolved: bool = ...
conditional: bool = ...
def split_having(self, negated: bool = ...) -> Tuple[Optional[WhereNode], Optional[WhereNode]]: ...
def as_sql(self, compiler: SQLCompiler, connection: Any) -> Any: ...
def get_group_by_cols(self) -> List[Expression]: ...
def relabel_aliases(self, change_map: Union[Dict[Optional[str], str], OrderedDict]) -> None: ...
def clone(self) -> WhereNode: ...
def relabeled_clone(self, change_map: Union[Dict[Optional[str], str], OrderedDict]) -> WhereNode: ...
def resolve_expression(self, *args: Any, **kwargs: Any) -> WhereNode: ...
class NothingNode:
contains_aggregate: bool = ...
def as_sql(self, compiler: SQLCompiler = ..., connection: Any = ...) -> Any: ...
class ExtraWhere:
contains_aggregate: bool = ...
sqls: List[str] = ...
params: Optional[Union[List[int], List[str]]] = ...
def __init__(self, sqls: List[str], params: Optional[Union[List[int], List[str]]]) -> None: ...
def as_sql(self, compiler: SQLCompiler = ..., connection: Any = ...) -> Tuple[str, Union[List[int], List[str]]]: ...
class SubqueryConstraint:
contains_aggregate: bool = ...
alias: str = ...
columns: List[str] = ...
targets: List[str] = ...
query_object: Query = ...
def __init__(self, alias: str, columns: List[str], targets: List[str], query_object: Query) -> None: ...
def as_sql(self, compiler: SQLCompiler, connection: Any) -> Tuple[str, Tuple]: ...
| 1,918 | Python | .py | 40 | 44 | 120 | 0.662927 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,523 | compiler.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/sql/compiler.pyi | from datetime import date, datetime
from decimal import Decimal
from itertools import chain
from typing import Any, Callable, Dict, Iterator, List, Optional, Set, Tuple, Type, Union
from uuid import UUID
from django.db.models.base import Model
from django.db.models.expressions import BaseExpression, Expression
from django.db.models.sql.query import Query, RawQuery
FORCE: Any
class SQLCompiler:
query: Any = ...
connection: Any = ...
using: Any = ...
quote_cache: Any = ...
select: Any = ...
annotation_col_map: Any = ...
klass_info: Any = ...
ordering_parts: Any = ...
def __init__(self, query: Union[Query, RawQuery], connection: Any, using: Optional[str]) -> None: ...
col_count: Any = ...
def setup_query(self) -> None: ...
has_extra_select: Any = ...
def pre_sql_setup(
self,
) -> Tuple[
List[Tuple[Expression, Tuple[str, Union[List[Any], Tuple[str, str]]], None]],
List[Tuple[Expression, Tuple[str, List[Union[int, str]], bool]]],
List[Tuple[str, List[float]]],
]: ...
def get_group_by(
self,
select: List[Tuple[BaseExpression, Tuple[str, List[float]], Optional[str]]],
order_by: List[Tuple[Expression, Tuple[str, List[Union[int, str]], bool]]],
) -> List[Tuple[str, List[float]]]: ...
def collapse_group_by(
self, expressions: List[Expression], having: Union[List[Expression], Tuple]
) -> List[Expression]: ...
def get_select(
self,
) -> Tuple[
List[Tuple[Expression, Tuple[str, List[Union[int, str]]], Optional[str]]],
Optional[Dict[str, Any]],
Dict[str, int],
]: ...
def get_order_by(self) -> List[Tuple[Expression, Tuple[str, List[Any], bool]]]: ...
def get_extra_select(
self,
order_by: List[Tuple[Expression, Tuple[str, List[Any], bool]]],
select: List[Tuple[Expression, Tuple[str, List[float]], Optional[str]]],
) -> List[Tuple[Expression, Tuple[str, List[Any]], None]]: ...
def quote_name_unless_alias(self, name: str) -> str: ...
def compile(
self, node: Any, select_format: Any = ...
) -> Tuple[str, Union[List[Optional[int]], Tuple[int, int]]]: ...
def get_combinator_sql(self, combinator: str, all: bool) -> Tuple[List[str], Union[List[int], List[str]]]: ...
def as_sql(self, with_limits: bool = ..., with_col_aliases: bool = ...) -> Any: ...
def get_default_columns(
self, start_alias: Optional[str] = ..., opts: Optional[Any] = ..., from_parent: Optional[Type[Model]] = ...
) -> List[Expression]: ...
def get_distinct(self) -> Tuple[List[Any], List[Any]]: ...
def find_ordering_name(
self,
name: str,
opts: Any,
alias: Optional[str] = ...,
default_order: str = ...,
already_seen: Optional[Set[Tuple[Optional[Tuple[Tuple[str, str]]], Tuple[Tuple[str, str]]]]] = ...,
) -> List[Tuple[Expression, bool]]: ...
def get_from_clause(self) -> Tuple[List[str], List[Union[int, str]]]: ...
def get_related_selections(
self,
select: List[Tuple[Expression, Optional[str]]],
opts: Optional[Any] = ...,
root_alias: Optional[str] = ...,
cur_depth: int = ...,
requested: Optional[Union[Dict[str, Dict[str, Dict[str, Dict[Any, Any]]]], bool]] = ...,
restricted: Optional[bool] = ...,
) -> List[Dict[str, Any]]: ...
def get_select_for_update_of_arguments(self): ...
def deferred_to_columns(self) -> Dict[Type[Model], Set[str]]: ...
def get_converters(self, expressions: List[Expression]) -> Dict[int, Tuple[List[Callable], Expression]]: ...
def apply_converters(
self, rows: chain, converters: Dict[int, Tuple[List[Callable], Expression]]
) -> Iterator[
Union[
List[Optional[Union[bytes, datetime, int, str]]],
List[Optional[Union[date, Decimal, float, str]]],
List[Optional[Union[datetime, float, str, UUID]]],
]
]: ...
def results_iter(
self,
results: Optional[Union[Iterator[Any], List[List[Tuple[Union[int, str]]]]]] = ...,
tuple_expected: bool = ...,
chunked_fetch: bool = ...,
chunk_size: int = ...,
) -> Iterator[Any]: ...
def has_results(self) -> bool: ...
def execute_sql(
self, result_type: str = ..., chunked_fetch: bool = ..., chunk_size: int = ...
) -> Optional[Any]: ...
def as_subquery_condition(self, alias: str, columns: List[str], compiler: SQLCompiler) -> Tuple[str, Tuple]: ...
def explain_query(self) -> Iterator[str]: ...
def cursor_iter(cursor: Any, sentinel: Any, col_count: Optional[int], itersize: int) -> Iterator[Any]: ...
| 4,712 | Python | .py | 104 | 38.951923 | 116 | 0.602216 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,524 | query.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/models/sql/query.pyi | import collections
from collections import OrderedDict, namedtuple
from typing import Any, Callable, Dict, Iterator, List, Optional, Sequence, Set, Tuple, Type, Union, Iterable
from django.db.models.lookups import Lookup, Transform
from django.db.models.query_utils import PathInfo, RegisterLookupMixin
from django.db.models.sql.compiler import SQLCompiler
from django.db.models.sql.datastructures import BaseTable
from django.db.models.sql.where import WhereNode
from django.db.models import Expression, Field, FilteredRelation, Model, Q, QuerySet
from django.db.models.expressions import Combinable
JoinInfo = namedtuple("JoinInfo", ["final_field", "targets", "opts", "joins", "path", "transform_function"])
class RawQuery:
high_mark: Optional[int]
low_mark: Optional[int]
params: Union[Any] = ...
sql: str = ...
using: str = ...
extra_select: Dict[Any, Any] = ...
annotation_select: Dict[Any, Any] = ...
cursor: object = ...
def __init__(self, sql: str, using: str, params: Any = ...) -> None: ...
def chain(self, using: str) -> RawQuery: ...
def clone(self, using: str) -> RawQuery: ...
def get_columns(self) -> List[str]: ...
def __iter__(self): ...
class Query:
base_table: str
related_ids: Optional[List[int]]
related_updates: Dict[Type[Model], List[Tuple[Field, None, Union[int, str]]]]
values: List[Any]
alias_prefix: str = ...
subq_aliases: frozenset = ...
compiler: str = ...
model: Optional[Type[Model]] = ...
alias_refcount: Dict[str, int] = ...
alias_map: Dict[str, BaseTable] = ...
external_aliases: Set[str] = ...
table_map: Dict[str, List[str]] = ...
default_cols: bool = ...
default_ordering: bool = ...
standard_ordering: bool = ...
used_aliases: Set[str] = ...
filter_is_sticky: bool = ...
subquery: bool = ...
group_by: Optional[Union[Sequence[Combinable], Sequence[str], bool]] = ...
order_by: Tuple = ...
distinct: bool = ...
distinct_fields: Tuple = ...
select_for_update: bool = ...
select_for_update_nowait: bool = ...
select_for_update_skip_locked: bool = ...
select_for_update_of: Tuple = ...
select_related: Union[Dict[str, Any], bool] = ...
max_depth: int = ...
values_select: Tuple = ...
annotation_select_mask: Optional[Set[str]] = ...
combinator: Optional[str] = ...
combinator_all: bool = ...
combined_queries: Tuple = ...
extra_select_mask: Optional[Set[str]] = ...
extra_tables: Tuple = ...
extra_order_by: Union[List[str], Tuple] = ...
deferred_loading: Tuple[Union[Set[str], frozenset], bool] = ...
explain_query: bool = ...
explain_format: Optional[str] = ...
explain_options: Dict[str, int] = ...
high_mark: Optional[int] = ...
low_mark: int = ...
def __init__(self, model: Optional[Type[Model]], where: Type[WhereNode] = ...) -> None: ...
@property
def extra(self) -> OrderedDict: ...
@property
def annotations(self) -> OrderedDict: ...
@property
def has_select_fields(self) -> bool: ...
def sql_with_params(self) -> Tuple[str, Tuple]: ...
def __deepcopy__(self, memo: Dict[str, Any]) -> Query: ...
def get_compiler(self, using: Optional[str] = ..., connection: Any = ...) -> SQLCompiler: ...
def clone(self) -> Query: ...
def chain(self, klass: Optional[Type[Query]] = ...) -> Query: ...
def relabeled_clone(self, change_map: Union[Dict[Any, Any], OrderedDict]) -> Query: ...
def get_count(self, using: str) -> int: ...
def has_filters(self) -> WhereNode: ...
def has_results(self, using: str) -> bool: ...
def explain(self, using: str, format: Optional[str] = ..., **options: Any) -> str: ...
def combine(self, rhs: Query, connector: str) -> None: ...
def deferred_to_data(self, target: Dict[Any, Any], callback: Callable) -> None: ...
def ref_alias(self, alias: str) -> None: ...
def unref_alias(self, alias: str, amount: int = ...) -> None: ...
def promote_joins(self, aliases: Set[str]) -> None: ...
def demote_joins(self, aliases: Set[str]) -> None: ...
def reset_refcounts(self, to_counts: Dict[str, int]) -> None: ...
def change_aliases(self, change_map: Union[Dict[Any, Any], OrderedDict]) -> None: ...
def bump_prefix(self, outer_query: Query) -> None: ...
def get_initial_alias(self) -> str: ...
def count_active_tables(self) -> int: ...
def resolve_expression(self, query: Query, *args: Any, **kwargs: Any) -> Query: ...
def as_sql(self, compiler: SQLCompiler, connection: Any) -> Any: ...
def resolve_lookup_value(self, value: Any, can_reuse: Optional[Set[str]], allow_joins: bool) -> Any: ...
def solve_lookup_type(self, lookup: str) -> Tuple[Sequence[str], Sequence[str], bool]: ...
def build_filter(
self,
filter_expr: Union[Dict[str, str], Tuple[str, Tuple[int, int]]],
branch_negated: bool = ...,
current_negated: bool = ...,
can_reuse: Optional[Set[str]] = ...,
allow_joins: bool = ...,
split_subq: bool = ...,
reuse_with_filtered_relation: bool = ...,
) -> Tuple[WhereNode, List[Any]]: ...
def add_filter(self, filter_clause: Tuple[str, Union[List[int], List[str]]]) -> None: ...
def add_q(self, q_object: Q) -> None: ...
def build_where(self, q_object: Q) -> Any: ...
def build_filtered_relation_q(
self, q_object: Q, reuse: Set[str], branch_negated: bool = ..., current_negated: bool = ...
) -> WhereNode: ...
def add_filtered_relation(self, filtered_relation: FilteredRelation, alias: str) -> None: ...
def setup_joins(
self,
names: List[str],
opts: Any,
alias: str,
can_reuse: Optional[Set[str]] = ...,
allow_many: bool = ...,
reuse_with_filtered_relation: bool = ...,
) -> JoinInfo: ...
def trim_joins(
self, targets: Tuple[Field], joins: List[str], path: List[PathInfo]
) -> Tuple[Tuple[Field], str, List[str]]: ...
def resolve_ref(
self, name: str, allow_joins: bool = ..., reuse: Optional[Set[str]] = ..., summarize: bool = ...
) -> Expression: ...
def split_exclude(
self,
filter_expr: Tuple[str, Union[QuerySet, int]],
can_reuse: Set[str],
names_with_path: List[Tuple[str, List[PathInfo]]],
) -> Tuple[WhereNode, Tuple]: ...
def set_empty(self) -> None: ...
def is_empty(self) -> bool: ...
def set_limits(self, low: Optional[int] = ..., high: Optional[int] = ...) -> None: ...
def clear_limits(self) -> None: ...
def has_limit_one(self) -> bool: ...
def can_filter(self) -> bool: ...
def clear_select_clause(self) -> None: ...
def clear_select_fields(self) -> None: ...
def set_select(self, cols: List[Expression]) -> None: ...
def add_distinct_fields(self, *field_names: Any) -> None: ...
def add_fields(self, field_names: Union[Iterator[Any], List[str]], allow_m2m: bool = ...) -> None: ...
def add_ordering(self, *ordering: Any) -> None: ...
def clear_ordering(self, force_empty: bool) -> None: ...
def set_group_by(self) -> None: ...
def add_select_related(self, fields: Iterable[str]) -> None: ...
def add_extra(
self,
select: Optional[Dict[str, Any]],
select_params: Optional[Iterable[Any]],
where: Optional[Sequence[str]],
params: Optional[Sequence[str]],
tables: Optional[Sequence[str]],
order_by: Optional[Sequence[str]],
) -> None: ...
def clear_deferred_loading(self) -> None: ...
def add_deferred_loading(self, field_names: Iterable[str]) -> None: ...
def add_immediate_loading(self, field_names: Iterable[str]) -> None: ...
def get_loaded_field_names(self) -> Dict[Type[Model], Set[str]]: ...
def get_loaded_field_names_cb(
self, target: Dict[Type[Model], Set[str]], model: Type[Model], fields: Set[Field]
) -> None: ...
def set_annotation_mask(self, names: Optional[Union[List[str], Set[str], Tuple]]) -> None: ...
def append_annotation_mask(self, names: List[str]) -> None: ...
def set_extra_mask(self, names: Union[List[str], Tuple]) -> None: ...
def set_values(self, fields: Union[List[str], Tuple]) -> None: ...
def trim_start(self, names_with_path: List[Tuple[str, List[PathInfo]]]) -> Tuple[str, bool]: ...
def is_nullable(self, field: Field) -> bool: ...
def build_lookup(
self, lookups: Sequence[str], lhs: Union[RegisterLookupMixin, Query], rhs: Optional[Query]
) -> Lookup: ...
def try_transform(self, lhs: Union[RegisterLookupMixin, Query], name: str) -> Transform: ...
class JoinPromoter:
connector: str = ...
negated: bool = ...
effective_connector: str = ...
num_children: int = ...
votes: collections.Counter = ...
def __init__(self, connector: str, num_children: int, negated: bool) -> None: ...
def add_votes(self, votes: Union[Iterator[Any], List[Any], Set[str], Tuple]) -> None: ...
def update_join_types(self, query: Query) -> Set[str]: ...
| 9,072 | Python | .py | 188 | 42.861702 | 109 | 0.613426 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,525 | autodetector.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/autodetector.pyi | from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union
from django.db.migrations.graph import MigrationGraph
from django.db.migrations.migration import Migration
from django.db.migrations.operations.base import Operation
from django.db.migrations.questioner import MigrationQuestioner
from django.db.migrations.state import ProjectState
from django.db.models.fields import Field
class MigrationAutodetector:
from_state: ProjectState = ...
to_state: ProjectState = ...
questioner: MigrationQuestioner = ...
existing_apps: Set[Any] = ...
def __init__(
self, from_state: ProjectState, to_state: ProjectState, questioner: Optional[MigrationQuestioner] = ...
) -> None: ...
def changes(
self,
graph: MigrationGraph,
trim_to_apps: Optional[Set[str]] = ...,
convert_apps: Optional[Set[str]] = ...,
migration_name: Optional[str] = ...,
) -> Dict[str, List[Migration]]: ...
def deep_deconstruct(self, obj: Any) -> Any: ...
def only_relation_agnostic_fields(
self, fields: List[Tuple[str, Field]]
) -> List[Tuple[str, List[Any], Dict[str, Union[Callable, int, str]]]]: ...
def check_dependency(
self, operation: Operation, dependency: Tuple[str, str, Optional[str], Union[bool, str]]
) -> bool: ...
def add_operation(
self,
app_label: str,
operation: Operation,
dependencies: Optional[List[Tuple[str, str, Optional[str], Union[bool, str]]]] = ...,
beginning: bool = ...,
) -> None: ...
def swappable_first_key(self, item: Tuple[str, str]) -> Tuple[str, str]: ...
renamed_models: Any = ...
renamed_models_rel: Any = ...
def generate_renamed_models(self) -> None: ...
def generate_created_models(self) -> None: ...
def generate_created_proxies(self) -> None: ...
def generate_deleted_models(self) -> None: ...
def generate_deleted_proxies(self) -> None: ...
renamed_fields: Any = ...
def generate_renamed_fields(self) -> None: ...
def generate_added_fields(self) -> None: ...
def generate_removed_fields(self) -> None: ...
def generate_altered_fields(self) -> None: ...
def create_altered_indexes(self) -> None: ...
def generate_added_indexes(self) -> None: ...
def generate_removed_indexes(self) -> None: ...
def generate_altered_unique_together(self) -> None: ...
def generate_altered_index_together(self) -> None: ...
def generate_altered_db_table(self) -> None: ...
def generate_altered_options(self) -> None: ...
def generate_altered_order_with_respect_to(self) -> None: ...
def generate_altered_managers(self) -> None: ...
def arrange_for_graph(
self, changes: Dict[str, List[Migration]], graph: MigrationGraph, migration_name: Optional[str] = ...
) -> Dict[str, List[Migration]]: ...
@classmethod
def suggest_name(cls, ops: List[Operation]) -> str: ...
@classmethod
def parse_number(cls, name: str) -> int: ...
| 3,011 | Python | .py | 65 | 40.923077 | 111 | 0.650476 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,526 | recorder.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/recorder.pyi | from typing import Any, Optional, Set, Tuple
from django.db.backends.base.base import BaseDatabaseWrapper
from django.db.models.query import QuerySet
from django.db import models
class MigrationRecorder:
class Migration(models.Model):
app: Any = ...
name: Any = ...
applied: Any = ...
connection: Optional[BaseDatabaseWrapper] = ...
def __init__(self, connection: Optional[BaseDatabaseWrapper]) -> None: ...
@property
def migration_qs(self) -> QuerySet: ...
def has_table(self) -> bool: ...
def ensure_schema(self) -> None: ...
def applied_migrations(self) -> Set[Tuple[str, str]]: ...
def record_applied(self, app: str, name: str) -> None: ...
def record_unapplied(self, app: str, name: str) -> None: ...
def flush(self) -> None: ...
| 806 | Python | .py | 19 | 37.684211 | 78 | 0.655612 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,527 | utils.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/utils.pyi | from typing import Any
COMPILED_REGEX_TYPE: Any
class RegexObject:
pattern: str = ...
flags: int = ...
def __init__(self, obj: Any) -> None: ...
def get_migration_name_timestamp() -> str: ...
| 207 | Python | .py | 7 | 26.428571 | 46 | 0.634518 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,528 | optimizer.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/optimizer.pyi | from typing import List, Optional
from django.db.migrations.operations.base import Operation
class MigrationOptimizer:
def optimize(self, operations: List[Operation], app_label: Optional[str] = ...) -> List[Operation]: ...
def optimize_inner(self, operations: List[Operation], app_label: Optional[str] = ...) -> List[Operation]: ...
| 343 | Python | .py | 5 | 65.6 | 113 | 0.735119 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,529 | loader.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/loader.pyi | from typing import Any, Dict, Optional, Sequence, Set, Tuple, Union
from django.db.migrations.migration import Migration
from django.db.migrations.state import ProjectState
MIGRATIONS_MODULE_NAME: str
class MigrationLoader:
connection: Any = ...
disk_migrations: Dict[Tuple[str, str], Migration] = ...
applied_migrations: Set[Tuple[str, str]] = ...
ignore_no_migrations: bool = ...
def __init__(self, connection: Any, load: bool = ..., ignore_no_migrations: bool = ...) -> None: ...
@classmethod
def migrations_module(cls, app_label: str) -> Tuple[Optional[str], bool]: ...
unmigrated_apps: Set[str] = ...
migrated_apps: Set[str] = ...
def load_disk(self) -> None: ...
def get_migration(self, app_label: str, name_prefix: str) -> Migration: ...
def get_migration_by_prefix(self, app_label: str, name_prefix: str) -> Migration: ...
def check_key(self, key: Tuple[str, str], current_app: str) -> Optional[Tuple[str, str]]: ...
def add_internal_dependencies(self, key: Tuple[str, str], migration: Migration) -> None: ...
def add_external_dependencies(self, key: Tuple[str, str], migration: Migration) -> None: ...
graph: Any = ...
replacements: Any = ...
def build_graph(self) -> None: ...
def check_consistent_history(self, connection: Any) -> None: ...
def detect_conflicts(self) -> Dict[str, Set[str]]: ...
def project_state(
self, nodes: Optional[Union[Tuple[str, str], Sequence[Tuple[str, str]]]] = ..., at_end: bool = ...
) -> ProjectState: ...
| 1,547 | Python | .py | 28 | 50.714286 | 106 | 0.651055 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,530 | graph.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/graph.pyi | from typing import Any, Dict, List, Optional, Set, Tuple, Union
from django.db.migrations.migration import Migration, SwappableTuple
from django.db.migrations.state import ProjectState
RECURSION_DEPTH_WARNING: str
class Node:
key: Tuple[str, str] = ...
children: Set[Any] = ...
parents: Set[Any] = ...
def __init__(self, key: Tuple[str, str]) -> None: ...
def __lt__(self, other: Union[Tuple[str, str], Node]) -> bool: ...
def __getitem__(self, item: int) -> str: ...
def add_child(self, child: Node) -> None: ...
def add_parent(self, parent: Node) -> None: ...
def ancestors(self) -> List[Tuple[str, str]]: ...
def descendants(self) -> List[Tuple[str, str]]: ...
class DummyNode(Node):
origin: Any = ...
error_message: Any = ...
def __init__(self, key: Tuple[str, str], origin: Union[Migration, str], error_message: str) -> None: ...
def promote(self) -> None: ...
def raise_error(self) -> None: ...
class MigrationGraph:
node_map: Dict[Any, Any] = ...
nodes: Dict[Any, Any] = ...
cached: bool = ...
def __init__(self) -> None: ...
def add_node(self, key: Tuple[str, str], migration: Optional[Migration]) -> None: ...
def add_dummy_node(self, key: Tuple[str, str], origin: Union[Migration, str], error_message: str) -> None: ...
def add_dependency(
self,
migration: Optional[Union[Migration, str]],
child: Tuple[str, str],
parent: Tuple[str, str],
skip_validation: bool = ...,
) -> None: ...
def remove_replaced_nodes(self, replacement: Tuple[str, str], replaced: List[Tuple[str, str]]) -> None: ...
def remove_replacement_node(self, replacement: Tuple[str, str], replaced: List[Tuple[str, str]]) -> None: ...
def validate_consistency(self) -> None: ...
def clear_cache(self) -> None: ...
def forwards_plan(self, target: Tuple[str, str]) -> List[Tuple[str, str]]: ...
def backwards_plan(self, target: Union[Tuple[str, str], Node]) -> List[Tuple[str, str]]: ...
def iterative_dfs(self, start: Any, forwards: bool = ...): ...
def root_nodes(self, app: Optional[str] = ...) -> List[Tuple[str, str]]: ...
def leaf_nodes(self, app: Optional[str] = ...) -> List[Tuple[str, str]]: ...
def ensure_not_cyclic(self) -> None: ...
def make_state(
self, nodes: Optional[Tuple[str, str]] = ..., at_end: bool = ..., real_apps: List[str] = ...
) -> ProjectState: ...
def __contains__(self, node: Union[Tuple[str, str], SwappableTuple]) -> bool: ...
| 2,531 | Python | .py | 49 | 46.632653 | 114 | 0.60759 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,531 | __init__.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/__init__.pyi | # Stubs for django.db.migrations (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from .migration import Migration as Migration, swappable_dependency as swappable_dependency
from .operations import *
| 243 | Python | .py | 5 | 47.4 | 91 | 0.822785 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,532 | serializer.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/serializer.pyi | from typing import Any, Callable, Dict, List, Set, Tuple, Union, Type
class BaseSerializer:
value: Any = ...
def __init__(self, value: Any) -> None: ...
def serialize(self) -> Any: ...
class BaseSequenceSerializer(BaseSerializer): ...
class BaseSimpleSerializer(BaseSerializer): ...
class DatetimeSerializer(BaseSerializer): ...
class DateSerializer(BaseSerializer): ...
class DecimalSerializer(BaseSerializer): ...
class DeconstructableSerializer(BaseSerializer):
@staticmethod
def serialize_deconstructed(
path: str, args: List[Any], kwargs: Dict[str, Union[Callable, int, str]]
) -> Tuple[str, Set[str]]: ...
class DictionarySerializer(BaseSerializer): ...
class EnumSerializer(BaseSerializer): ...
class FloatSerializer(BaseSimpleSerializer): ...
class FrozensetSerializer(BaseSequenceSerializer): ...
class FunctionTypeSerializer(BaseSerializer): ...
class FunctoolsPartialSerializer(BaseSerializer): ...
class IterableSerializer(BaseSerializer): ...
class ModelFieldSerializer(DeconstructableSerializer): ...
class ModelManagerSerializer(DeconstructableSerializer): ...
class OperationSerializer(BaseSerializer): ...
class RegexSerializer(BaseSerializer): ...
class SequenceSerializer(BaseSequenceSerializer): ...
class SetSerializer(BaseSequenceSerializer): ...
class SettingsReferenceSerializer(BaseSerializer): ...
class TimedeltaSerializer(BaseSerializer): ...
class TimeSerializer(BaseSerializer): ...
class TupleSerializer(BaseSequenceSerializer): ...
class TypeSerializer(BaseSerializer): ...
class UUIDSerializer(BaseSerializer): ...
def serializer_factory(value: Any) -> BaseSerializer: ...
class Serializer:
@classmethod
def register(cls, type_: type, serializer: Type[BaseSerializer]) -> None: ...
@classmethod
def unregister(cls, type_: type) -> None: ...
| 1,828 | Python | .py | 40 | 43.35 | 81 | 0.773288 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,533 | state.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/state.pyi | from typing import Any, Dict, Iterator, List, Optional, Sequence, Tuple, Type, Union, Set
from django.apps import AppConfig
from django.apps.registry import Apps
from django.db.models.base import Model
from django.db.models.manager import Manager
from django.db.models.fields import Field
class AppConfigStub(AppConfig): ...
class ModelState:
name: str
app_label: str
fields: List[Tuple[str, Field]]
options: Dict[str, Any] = ...
bases: Tuple[Type[Model]] = ...
managers: List[Tuple[str, Manager]] = ...
def __init__(
self,
app_label: str,
name: str,
fields: List[Tuple[str, Field]],
options: Optional[Dict[str, Any]] = ...,
bases: Optional[Sequence[Union[Type[Model], str]]] = ...,
managers: Optional[List[Tuple[str, Manager]]] = ...,
) -> None: ...
def clone(self) -> ModelState: ...
def construct_managers(self) -> Iterator[Tuple[str, Manager]]: ...
@classmethod
def from_model(cls, model: Type[Model], exclude_rels: bool = ...) -> ModelState: ...
def get_field_by_name(self, name: str) -> Field: ...
@property
def name_lower(self) -> str: ...
def render(self, apps: Apps) -> Any: ...
def get_related_models_tuples(model: Type[Model]) -> Set[Tuple[str, str]]: ...
def get_related_models_recursive(model: Type[Model]) -> Set[Tuple[str, str]]: ...
class ProjectState:
is_delayed: bool
models: Dict[Any, Any]
real_apps: List[str]
def __init__(
self, models: Optional[Dict[Tuple[str, str], ModelState]] = ..., real_apps: Optional[List[str]] = ...
) -> None: ...
def add_model(self, model_state: ModelState) -> None: ...
@property
def apps(self) -> StateApps: ...
def clear_delayed_apps_cache(self) -> None: ...
def clone(self) -> ProjectState: ...
@property
def concrete_apps(self) -> StateApps: ...
@classmethod
def from_apps(cls, apps: Apps) -> ProjectState: ...
def reload_model(self, app_label: str, model_name: str, delay: bool = ...) -> None: ...
def reload_models(self, models: List[Any], delay: bool = ...) -> None: ...
def remove_model(self, app_label: str, model_name: str) -> None: ...
class StateApps(Apps):
real_models: List[ModelState]
def __init__(
self, real_apps: List[str], models: Dict[Tuple[str, str], ModelState], ignore_swappable: bool = ...
) -> None: ...
def bulk_update(self) -> Iterator[None]: ...
def clone(self) -> StateApps: ...
def render_multiple(self, model_states: List[ModelState]) -> None: ...
def unregister_model(self, app_label: str, model_name: str) -> None: ...
| 2,640 | Python | .py | 61 | 38.360656 | 109 | 0.629471 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,534 | migration.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/migration.pyi | from typing import Any, List, Tuple
from django.db.backends.base.schema import BaseDatabaseSchemaEditor
from django.db.migrations.state import ProjectState
class Migration:
operations: List[Any] = ...
dependencies: List[Any] = ...
run_before: List[Any] = ...
replaces: List[Any] = ...
initial: Any = ...
atomic: bool = ...
name: str = ...
app_label: str = ...
def __init__(self, name: str, app_label: str) -> None: ...
def mutate_state(self, project_state: ProjectState, preserve: bool = ...) -> ProjectState: ...
def apply(
self, project_state: ProjectState, schema_editor: BaseDatabaseSchemaEditor, collect_sql: bool = ...
) -> ProjectState: ...
def unapply(
self, project_state: ProjectState, schema_editor: BaseDatabaseSchemaEditor, collect_sql: bool = ...
) -> ProjectState: ...
class SwappableTuple(Tuple[str, str]):
setting: str = ...
def __new__(cls, value: Tuple[str, str], setting: str) -> SwappableTuple: ...
def swappable_dependency(value: str) -> SwappableTuple: ...
| 1,064 | Python | .py | 24 | 39.833333 | 107 | 0.658301 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,535 | questioner.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/questioner.pyi | from typing import Any, Dict, Optional, Set
from django.db.migrations.state import ModelState
from django.db.models.fields import Field
class MigrationQuestioner:
defaults: Dict[str, Any] = ...
specified_apps: Set[str] = ...
dry_run: Optional[bool] = ...
def __init__(
self,
defaults: Optional[Dict[str, bool]] = ...,
specified_apps: Optional[Set[str]] = ...,
dry_run: Optional[bool] = ...,
) -> None: ...
def ask_initial(self, app_label: str) -> bool: ...
def ask_not_null_addition(self, field_name: str, model_name: str) -> None: ...
def ask_not_null_alteration(self, field_name: Any, model_name: Any): ...
def ask_rename(self, model_name: str, old_name: str, new_name: str, field_instance: Field) -> bool: ...
def ask_rename_model(self, old_model_state: ModelState, new_model_state: ModelState) -> bool: ...
def ask_merge(self, app_label: str) -> bool: ...
def ask_auto_now_add_addition(self, field_name: str, model_name: str) -> None: ...
class InteractiveMigrationQuestioner(MigrationQuestioner): ...
class NonInteractiveMigrationQuestioner(MigrationQuestioner): ...
| 1,156 | Python | .py | 22 | 47.727273 | 107 | 0.665487 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,536 | executor.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/executor.pyi | from typing import Any, Callable, List, Optional, Set, Tuple, Union
from django.db import DefaultConnectionProxy
from django.db.backends.base.base import BaseDatabaseWrapper
from django.db.migrations.migration import Migration
from .loader import MigrationLoader
from .recorder import MigrationRecorder
from .state import ProjectState
class MigrationExecutor:
connection: Any = ...
loader: MigrationLoader = ...
recorder: MigrationRecorder = ...
progress_callback: Callable = ...
def __init__(
self,
connection: Optional[Union[DefaultConnectionProxy, BaseDatabaseWrapper]],
progress_callback: Optional[Callable] = ...,
) -> None: ...
def migration_plan(
self, targets: Union[List[Tuple[str, Optional[str]]], Set[Tuple[str, str]]], clean_start: bool = ...
) -> List[Tuple[Migration, bool]]: ...
def migrate(
self,
targets: Optional[List[Tuple[str, Optional[str]]]],
plan: Optional[List[Tuple[Migration, bool]]] = ...,
state: Optional[ProjectState] = ...,
fake: bool = ...,
fake_initial: bool = ...,
) -> ProjectState: ...
def collect_sql(self, plan: List[Tuple[Migration, bool]]) -> List[str]: ...
def apply_migration(
self, state: ProjectState, migration: Migration, fake: bool = ..., fake_initial: bool = ...
) -> ProjectState: ...
def unapply_migration(self, state: ProjectState, migration: Migration, fake: bool = ...) -> ProjectState: ...
def check_replacements(self) -> None: ...
def detect_soft_applied(
self, project_state: Optional[ProjectState], migration: Migration
) -> Tuple[bool, ProjectState]: ...
| 1,679 | Python | .py | 37 | 39.864865 | 113 | 0.66687 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,537 | writer.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/writer.pyi | from typing import Any, List, Set, Tuple, Union, Type
from django.db.migrations.migration import Migration
from django.db.migrations.operations.base import Operation
from django.db.migrations.operations.models import CreateModel
from django.db.migrations.serializer import BaseSerializer
class SettingsReference(str):
def __init__(self, value: str, setting_name: str) -> None: ...
class OperationWriter:
operation: CreateModel = ...
buff: List[Any] = ...
indentation: int = ...
def __init__(self, operation: Operation, indentation: int = ...) -> None: ...
def serialize(self) -> Tuple[str, Set[str]]: ...
def indent(self) -> None: ...
def unindent(self) -> None: ...
def feed(self, line: str) -> None: ...
def render(self) -> str: ...
class MigrationWriter:
migration: Migration = ...
needs_manual_porting: bool = ...
def __init__(self, migration: Union[type, Migration], include_header: bool = ...) -> None: ...
def as_string(self) -> str: ...
@property
def basedir(self) -> str: ...
@property
def filename(self) -> str: ...
@property
def path(self) -> str: ...
@classmethod
def serialize(cls, value: Any) -> Tuple[str, Set[str]]: ...
@classmethod
def register_serializer(cls, type_: type, serializer: Type[BaseSerializer]) -> None: ...
@classmethod
def unregister_serializer(cls, type_: type) -> None: ...
MIGRATION_TEMPLATE: str
| 1,441 | Python | .py | 35 | 37.057143 | 98 | 0.659529 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,538 | topological_sort.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/topological_sort.pyi | from typing import Dict, Iterator, List, Set
from django.db.migrations.operations.base import Operation
def topological_sort_as_sets(dependency_graph: Dict[Operation, Set[Operation]]) -> Iterator[Set[Operation]]: ...
def stable_topological_sort(
l: List[Operation], dependency_graph: Dict[Operation, Set[Operation]]
) -> List[Operation]: ...
| 348 | Python | .py | 6 | 56 | 112 | 0.767647 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,539 | exceptions.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/exceptions.pyi | from typing import Optional, Tuple
from django.db.migrations.migration import Migration
from django.db.utils import DatabaseError
class AmbiguityError(Exception): ...
class BadMigrationError(Exception): ...
class CircularDependencyError(Exception): ...
class InconsistentMigrationHistory(Exception): ...
class InvalidBasesError(ValueError): ...
class IrreversibleError(RuntimeError): ...
class NodeNotFoundError(LookupError):
message: str = ...
origin: None = ...
node: Tuple[str, str] = ...
def __init__(self, message: str, node: Tuple[str, str], origin: Optional[Migration] = ...) -> None: ...
class MigrationSchemaMissing(DatabaseError): ...
class InvalidMigrationPlan(ValueError): ...
| 709 | Python | .py | 16 | 42.0625 | 107 | 0.756168 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,540 | utils.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/operations/utils.pyi | from django.db.migrations.state import ProjectState
from django.db.models.fields import Field
def is_referenced_by_foreign_key(state: ProjectState, model_name_lower: str, field: Field, field_name: str) -> bool: ...
| 217 | Python | .py | 3 | 70.666667 | 120 | 0.787736 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,541 | fields.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/operations/fields.pyi | from typing import Any, Optional
from django.db.models.fields import Field
from .base import Operation
class FieldOperation(Operation):
model_name: str = ...
model_name_lower: str
name: str = ...
def __init__(self, model_name: str, name: str, field: Optional[Field] = ...) -> None: ...
def name_lower(self) -> str: ...
def is_same_model_operation(self, operation: FieldOperation) -> bool: ...
def is_same_field_operation(self, operation: AddField) -> bool: ...
class AddField(FieldOperation):
field: Field = ...
preserve_default: bool = ...
def __init__(self, model_name: str, name: str, field: Field, preserve_default: bool = ...) -> None: ...
class RemoveField(FieldOperation): ...
class AlterField(FieldOperation):
field: Any = ...
preserve_default: Any = ...
def __init__(self, model_name: str, name: str, field: Field, preserve_default: bool = ...) -> None: ...
class RenameField(FieldOperation):
old_name: Any = ...
new_name: Any = ...
def __init__(self, model_name: str, old_name: str, new_name: str) -> None: ...
def old_name_lower(self): ...
def new_name_lower(self) -> str: ...
| 1,166 | Python | .py | 26 | 40.846154 | 107 | 0.641093 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,542 | __init__.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/operations/__init__.pyi | from .fields import (
AddField as AddField,
AlterField as AlterField,
RemoveField as RemoveField,
RenameField as RenameField,
)
from .models import (
AddIndex as AddIndex,
AlterIndexTogether as AlterIndexTogether,
AlterModelManagers as AlterModelManagers,
AlterModelOptions as AlterModelOptions,
AlterModelTable as AlterModelTable,
AlterOrderWithRespectTo as AlterOrderWithRespectTo,
AlterUniqueTogether as AlterUniqueTogether,
CreateModel as CreateModel,
DeleteModel as DeleteModel,
RemoveIndex as RemoveIndex,
RenameModel as RenameModel,
AddConstraint as AddConstraint,
RemoveConstraint as RemoveConstraint,
)
from .special import RunPython as RunPython, RunSQL as RunSQL, SeparateDatabaseAndState as SeparateDatabaseAndState
| 796 | Python | .py | 22 | 32.090909 | 115 | 0.812661 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,543 | models.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/operations/models.pyi | from typing import Any, Collection, Dict, List, Optional, Sequence, Tuple, Union
from django.db.migrations.operations.base import Operation
from django.db.models.indexes import Index
from django.db.models.manager import Manager
from django.db.models.constraints import BaseConstraint
from django.db.models.fields import Field
class ModelOperation(Operation):
name: str = ...
def __init__(self, name: str) -> None: ...
def name_lower(self) -> str: ...
class CreateModel(ModelOperation):
fields: Sequence[Tuple[str, Field]] = ...
options: Any = ...
bases: Optional[Sequence[Union[type, str]]] = ...
managers: Optional[Sequence[Tuple[str, Manager]]] = ...
def __init__(
self,
name: str,
fields: Sequence[Tuple[str, Field]],
options: Optional[Dict[str, Any]] = ...,
bases: Optional[Sequence[Union[type, str]]] = ...,
managers: Optional[Sequence[Tuple[str, Manager]]] = ...,
) -> None: ...
def model_to_key(self, model: str) -> List[str]: ...
class DeleteModel(ModelOperation): ...
class RenameModel(ModelOperation):
old_name: Any = ...
new_name: Any = ...
def __init__(self, old_name: str, new_name: str) -> None: ...
def old_name_lower(self) -> str: ...
def new_name_lower(self) -> str: ...
class AlterModelTable(ModelOperation):
table: Optional[str] = ...
def __init__(self, name: str, table: Optional[str]) -> None: ...
class ModelOptionOperation(ModelOperation): ...
class FieldRelatedOptionOperation(ModelOptionOperation): ...
class AlterUniqueTogether(FieldRelatedOptionOperation):
option_name: str = ...
unique_together: Collection[Sequence[str]] = ...
def __init__(self, name: str, unique_together: Optional[Collection[Sequence[str]]]) -> None: ...
class AlterIndexTogether(FieldRelatedOptionOperation):
option_name: str = ...
index_together: Collection[Sequence[str]] = ...
def __init__(self, name: str, index_together: Optional[Collection[Sequence[str]]]) -> None: ...
class AlterOrderWithRespectTo(FieldRelatedOptionOperation):
order_with_respect_to: str = ...
def __init__(self, name: str, order_with_respect_to: str) -> None: ...
class AlterModelOptions(ModelOptionOperation):
ALTER_OPTION_KEYS: Any = ...
options: Dict[str, str] = ...
def __init__(self, name: str, options: Dict[str, Any]) -> None: ...
class AlterModelManagers(ModelOptionOperation):
managers: Any = ...
def __init__(self, name: Any, managers: Any) -> None: ...
class IndexOperation(Operation):
option_name: str = ...
def model_name_lower(self): ...
class AddIndex(IndexOperation):
model_name: str = ...
index: Index = ...
def __init__(self, model_name: str, index: Union[str, Index]) -> None: ...
class RemoveIndex(IndexOperation):
model_name: str = ...
name: str = ...
def __init__(self, model_name: str, name: Union[str, Index]) -> None: ...
class AddConstraint(IndexOperation):
def __init__(self, model_name: str, constraint: BaseConstraint): ...
class RemoveConstraint(IndexOperation):
def __init__(self, model_name: str, name: str) -> None: ...
| 3,154 | Python | .py | 69 | 41.434783 | 100 | 0.667427 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,544 | base.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/operations/base.pyi | from typing import Any, List
class Operation:
reversible: bool = ...
reduces_to_sql: bool = ...
atomic: bool = ...
elidable: bool = ...
serialization_expand_args: Any = ...
def deconstruct(self): ...
def state_forwards(self, app_label: Any, state: Any) -> None: ...
def database_forwards(self, app_label: Any, schema_editor: Any, from_state: Any, to_state: Any) -> None: ...
def database_backwards(self, app_label: Any, schema_editor: Any, from_state: Any, to_state: Any) -> None: ...
def describe(self): ...
def references_model(self, name: str, app_label: str = ...) -> bool: ...
def references_field(self, model_name: str, name: str, app_label: str = ...) -> bool: ...
def allow_migrate_model(self, connection_alias: Any, model: Any): ...
def reduce(self, operation: Operation, in_between: List[Operation], app_label: str = ...) -> bool: ...
| 902 | Python | .py | 16 | 51.8125 | 113 | 0.632768 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,545 | special.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/migrations/operations/special.pyi | from typing import Any, Callable, Dict, Optional, Sequence
from django.db.backends.base.schema import BaseDatabaseSchemaEditor
from django.db.migrations.state import StateApps
from .base import Operation
class SeparateDatabaseAndState(Operation):
database_operations: Sequence[Operation] = ...
state_operations: Sequence[Operation] = ...
def __init__(
self, database_operations: Sequence[Operation] = ..., state_operations: Sequence[Operation] = ...
) -> None: ...
class RunSQL(Operation):
noop: str = ...
sql: Any = ...
reverse_sql: Any = ...
state_operations: Any = ...
hints: Any = ...
def __init__(
self,
sql: Any,
reverse_sql: Optional[Any] = ...,
state_operations: Optional[Any] = ...,
hints: Optional[Any] = ...,
elidable: bool = ...,
) -> None: ...
class RunPython(Operation):
code: Callable = ...
reverse_code: Optional[Callable] = ...
hints: Optional[Dict[str, Any]] = ...
def __init__(
self,
code: Callable,
reverse_code: Optional[Callable] = ...,
atomic: Optional[bool] = ...,
hints: Optional[Dict[str, Any]] = ...,
elidable: bool = ...,
) -> None: ...
@staticmethod
def noop(apps: StateApps, schema_editor: BaseDatabaseSchemaEditor) -> None: ...
| 1,340 | Python | .py | 38 | 29.5 | 105 | 0.609869 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,546 | utils.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/backends/utils.pyi | import types
from datetime import date, datetime, time
from decimal import Decimal
from typing import Any, Dict, List, Mapping, Optional, Sequence, Tuple, Type, Union
from uuid import UUID
logger: Any
# Python types that can be adapted to SQL.
_SQLType = Union[None, bool, int, float, Decimal, str, bytes, datetime, UUID]
class CursorWrapper:
cursor: Any = ...
db: Any = ...
def __init__(self, cursor: Any, db: Any) -> None: ...
WRAP_ERROR_ATTRS: Any = ...
def __getattr__(self, attr: str) -> Any: ...
def __iter__(self) -> None: ...
def __enter__(self) -> CursorWrapper: ...
def __exit__(
self,
exc_type: Optional[Type[BaseException]],
exc_value: Optional[BaseException],
tb: Optional[types.TracebackType],
) -> None: ...
def callproc(self, procname: str, params: List[Any] = ..., kparams: Dict[str, int] = ...) -> Any: ...
def execute(
self, sql: str, params: Optional[Union[Sequence[_SQLType], Mapping[str, _SQLType]]] = ...
) -> Optional[Any]: ...
def executemany(
self, sql: str, param_list: Sequence[Optional[Union[Sequence[_SQLType], Mapping[str, _SQLType]]]]
) -> Optional[Any]: ...
class CursorDebugWrapper(CursorWrapper):
cursor: Any
db: Any
def typecast_date(s: Optional[str]) -> Optional[date]: ...
def typecast_time(s: Optional[str]) -> Optional[time]: ...
def typecast_timestamp(s: Optional[str]) -> Optional[date]: ...
def rev_typecast_decimal(d: Decimal) -> str: ...
def split_identifier(identifier: str) -> Tuple[str, str]: ...
def truncate_name(identifier: str, length: Optional[int] = ..., hash_len: int = ...) -> str: ...
def format_number(
value: Optional[Decimal], max_digits: Optional[int], decimal_places: Optional[int]
) -> Optional[str]: ...
def strip_quotes(table_name: str) -> str: ...
| 1,835 | Python | .py | 42 | 39.809524 | 105 | 0.645414 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,547 | ddl_references.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/backends/ddl_references.pyi | from typing import Any, Callable, List, Tuple, Union, Dict
class Reference:
def references_table(self, table: Any): ...
def references_column(self, table: Any, column: Any): ...
def rename_table_references(self, old_table: Any, new_table: Any) -> None: ...
def rename_column_references(self, table: Any, old_column: Any, new_column: Any) -> None: ...
class Table(Reference):
table: str = ...
quote_name: Callable = ...
def __init__(self, table: str, quote_name: Callable) -> None: ...
def references_table(self, table: str) -> bool: ...
def rename_table_references(self, old_table: str, new_table: str) -> None: ...
class TableColumns(Table):
table: str = ...
columns: List[str] = ...
def __init__(self, table: str, columns: List[str]) -> None: ...
def references_column(self, table: str, column: str) -> bool: ...
def rename_column_references(self, table: str, old_column: str, new_column: str) -> None: ...
class Columns(TableColumns):
columns: List[str]
table: str
quote_name: Callable = ...
col_suffixes: Tuple = ...
def __init__(
self, table: str, columns: List[str], quote_name: Callable, col_suffixes: Union[List[str], Tuple] = ...
) -> None: ...
class IndexName(TableColumns):
columns: List[str]
table: str
suffix: str = ...
create_index_name: Callable = ...
def __init__(self, table: str, columns: List[str], suffix: str, create_index_name: Callable) -> None: ...
class ForeignKeyName(TableColumns):
columns: List[str]
table: str
to_reference: TableColumns = ...
suffix_template: str = ...
create_fk_name: Callable = ...
def __init__(
self,
from_table: str,
from_columns: List[str],
to_table: str,
to_columns: List[str],
suffix_template: str,
create_fk_name: Callable,
) -> None: ...
def references_table(self, table: str) -> bool: ...
def references_column(self, table: str, column: str) -> bool: ...
def rename_table_references(self, old_table: str, new_table: str) -> None: ...
def rename_column_references(self, table: str, old_column: str, new_column: str) -> None: ...
class Statement(Reference):
template: str = ...
parts: Dict[str, Table] = ...
def __init__(self, template: str, **parts: Any) -> None: ...
def references_table(self, table: str) -> bool: ...
def references_column(self, table: str, column: str) -> bool: ...
def rename_table_references(self, old_table: str, new_table: str) -> None: ...
def rename_column_references(self, table: str, old_column: str, new_column: str) -> None: ...
| 2,657 | Python | .py | 59 | 39.915254 | 111 | 0.625241 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,548 | client.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/backends/postgresql/client.pyi | from typing import Dict
from django.db.backends.base.client import BaseDatabaseClient
class DatabaseClient(BaseDatabaseClient):
executable_name: str = ...
@classmethod
def runshell_db(cls, conn_params: Dict[str, str]) -> None: ...
def runshell(self) -> None: ...
| 281 | Python | .py | 7 | 36.571429 | 66 | 0.727941 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,549 | base.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/backends/postgresql/base.pyi | from typing import Dict, Tuple
from django.db.backends.base.base import BaseDatabaseWrapper
def psycopg2_version() -> Tuple[int, ...]: ...
PSYCOPG2_VERSION: Tuple[int, ...] = ...
class DatabaseWrapper(BaseDatabaseWrapper):
operators: Dict[str, str] = ...
pattern_esc: str = ...
pattern_ops: Dict[str, str] = ...
# PostgreSQL backend-specific attributes.
_named_cursor_idx: int = ...
@property
def pg_version(self) -> str: ...
| 459 | Python | .py | 12 | 34.5 | 60 | 0.671946 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,550 | client.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/backends/mysql/client.pyi | from typing import Dict, List, Optional, Union
from django.db.backends.base.client import BaseDatabaseClient
class DatabaseClient(BaseDatabaseClient):
executable_name: str = ...
@classmethod
def settings_to_cmd_args(
cls, settings_dict: Dict[str, Optional[Union[Dict[str, Dict[str, str]], int, str]]]
) -> List[str]: ...
def runshell(self) -> None: ...
| 383 | Python | .py | 9 | 38.222222 | 91 | 0.698925 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,551 | client.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/backends/base/client.pyi | from typing import Any
from django.db.backends.base.base import BaseDatabaseWrapper
class BaseDatabaseClient:
executable_name: Any = ...
connection: Any = ...
def __init__(self, connection: BaseDatabaseWrapper) -> None: ...
def runshell(self) -> None: ...
| 274 | Python | .py | 7 | 35.571429 | 68 | 0.709434 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,552 | features.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/backends/base/features.pyi | from typing import Any
from django.db.backends.base.base import BaseDatabaseWrapper
class BaseDatabaseFeatures:
gis_enabled: bool = ...
allows_group_by_pk: bool = ...
allows_group_by_selected_pks: bool = ...
empty_fetchmany_value: Any = ...
update_can_self_select: bool = ...
interprets_empty_strings_as_nulls: bool = ...
supports_nullable_unique_constraints: bool = ...
supports_partially_nullable_unique_constraints: bool = ...
can_use_chunked_reads: bool = ...
can_return_id_from_insert: bool = ...
can_return_ids_from_bulk_insert: bool = ...
has_bulk_insert: bool = ...
uses_savepoints: bool = ...
can_release_savepoints: bool = ...
related_fields_match_type: bool = ...
allow_sliced_subqueries_with_in: bool = ...
has_select_for_update: bool = ...
has_select_for_update_nowait: bool = ...
has_select_for_update_skip_locked: bool = ...
has_select_for_update_of: bool = ...
select_for_update_of_column: bool = ...
test_db_allows_multiple_connections: bool = ...
supports_unspecified_pk: bool = ...
supports_forward_references: bool = ...
truncates_names: bool = ...
has_real_datatype: bool = ...
supports_subqueries_in_group_by: bool = ...
has_native_uuid_field: bool = ...
has_native_duration_field: bool = ...
supports_temporal_subtraction: bool = ...
supports_regex_backreferencing: bool = ...
supports_date_lookup_using_string: bool = ...
supports_timezones: bool = ...
has_zoneinfo_database: bool = ...
requires_explicit_null_ordering_when_grouping: bool = ...
nulls_order_largest: bool = ...
max_query_params: Any = ...
allows_auto_pk_0: bool = ...
can_defer_constraint_checks: bool = ...
supports_mixed_date_datetime_comparisons: bool = ...
supports_tablespaces: bool = ...
supports_sequence_reset: bool = ...
can_introspect_default: bool = ...
can_introspect_foreign_keys: bool = ...
can_introspect_autofield: bool = ...
can_introspect_big_integer_field: bool = ...
can_introspect_binary_field: bool = ...
can_introspect_decimal_field: bool = ...
can_introspect_ip_address_field: bool = ...
can_introspect_positive_integer_field: bool = ...
can_introspect_small_integer_field: bool = ...
can_introspect_time_field: bool = ...
introspected_boolean_field_type: str = ...
supports_index_column_ordering: bool = ...
can_distinct_on_fields: bool = ...
autocommits_when_autocommit_is_off: bool = ...
atomic_transactions: bool = ...
can_rollback_ddl: bool = ...
supports_atomic_references_rename: bool = ...
supports_combined_alters: bool = ...
supports_foreign_keys: bool = ...
supports_column_check_constraints: bool = ...
supports_paramstyle_pyformat: bool = ...
requires_literal_defaults: bool = ...
connection_persists_old_columns: bool = ...
closed_cursor_error_class: Any = ...
has_case_insensitive_like: bool = ...
requires_sqlparse_for_splitting: bool = ...
bare_select_suffix: str = ...
implied_column_null: bool = ...
uppercases_column_names: bool = ...
supports_select_for_update_with_limit: bool = ...
greatest_least_ignores_nulls: bool = ...
can_clone_databases: bool = ...
ignores_table_name_case: bool = ...
for_update_after_from: bool = ...
supports_select_union: bool = ...
supports_select_intersection: bool = ...
supports_select_difference: bool = ...
supports_slicing_ordering_in_compound: bool = ...
supports_aggregate_filter_clause: bool = ...
supports_index_on_text_field: bool = ...
supports_over_clause: bool = ...
supports_cast_with_precision: bool = ...
create_test_procedure_without_params_sql: Any = ...
create_test_procedure_with_int_param_sql: Any = ...
supports_callproc_kwargs: bool = ...
db_functions_convert_bytes_to_str: bool = ...
supported_explain_formats: Any = ...
validates_explain_options: bool = ...
connection: Any = ...
def __init__(self, connection: BaseDatabaseWrapper) -> None: ...
def supports_explaining_query_execution(self) -> bool: ...
def supports_transactions(self): ...
def supports_stddev(self): ...
| 4,244 | Python | .py | 98 | 38.408163 | 68 | 0.653716 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,553 | validation.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/backends/base/validation.pyi | from typing import Any, List
from django.db.backends.base.base import BaseDatabaseWrapper
from django.db.models.fields import Field
class BaseDatabaseValidation:
connection: Any = ...
def __init__(self, connection: BaseDatabaseWrapper) -> None: ...
def check(self, **kwargs: Any) -> List[Any]: ...
def check_field(self, field: Field, **kwargs: Any) -> List[Any]: ...
| 386 | Python | .py | 8 | 44.875 | 72 | 0.709333 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,554 | schema.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/backends/base/schema.pyi | from typing import Any, ContextManager, List, Optional, Sequence, Tuple, Type, Union
from django.db.backends.ddl_references import Statement
from django.db.models.base import Model
from django.db.models.indexes import Index
from django.db.models.fields import Field
logger: Any
class BaseDatabaseSchemaEditor(ContextManager[Any]):
sql_create_table: str = ...
sql_rename_table: str = ...
sql_retablespace_table: str = ...
sql_delete_table: str = ...
sql_create_column: str = ...
sql_alter_column: str = ...
sql_alter_column_type: str = ...
sql_alter_column_null: str = ...
sql_alter_column_not_null: str = ...
sql_alter_column_default: str = ...
sql_alter_column_no_default: str = ...
sql_delete_column: str = ...
sql_rename_column: str = ...
sql_update_with_default: str = ...
sql_create_check: str = ...
sql_delete_check: str = ...
sql_create_unique: str = ...
sql_delete_unique: str = ...
sql_create_fk: str = ...
sql_create_inline_fk: str = ...
sql_delete_fk: str = ...
sql_create_index: str = ...
sql_delete_index: str = ...
sql_create_pk: str = ...
sql_delete_pk: str = ...
sql_delete_procedure: str = ...
connection: Any = ...
collect_sql: bool = ...
collected_sql: Any = ...
atomic_migration: Any = ...
def __init__(self, connection: Any, collect_sql: bool = ..., atomic: bool = ...) -> None: ...
deferred_sql: Any = ...
atomic: Any = ...
def __enter__(self) -> BaseDatabaseSchemaEditor: ...
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None: ...
def execute(self, sql: Union[Statement, str], params: Optional[Union[List[int], Tuple]] = ...) -> None: ...
def quote_name(self, name: str) -> str: ...
def column_sql(
self, model: Type[Model], field: Field, include_default: bool = ...
) -> Tuple[Optional[str], Optional[List[Any]]]: ...
def skip_default(self, field: Any): ...
def prepare_default(self, value: Any) -> None: ...
def effective_default(self, field: Field) -> Optional[Union[int, str]]: ...
def quote_value(self, value: Any) -> None: ...
def create_model(self, model: Type[Model]) -> None: ...
def delete_model(self, model: Type[Model]) -> None: ...
def add_index(self, model: Type[Model], index: Index) -> None: ...
def remove_index(self, model: Type[Model], index: Index) -> None: ...
def alter_unique_together(
self,
model: Type[Model],
old_unique_together: Sequence[Sequence[str]],
new_unique_together: Sequence[Sequence[str]],
) -> None: ...
def alter_index_together(
self,
model: Type[Model],
old_index_together: Sequence[Sequence[str]],
new_index_together: Sequence[Sequence[str]],
) -> None: ...
def alter_db_table(self, model: Type[Model], old_db_table: str, new_db_table: str) -> None: ...
def alter_db_tablespace(self, model: Any, old_db_tablespace: Any, new_db_tablespace: Any) -> None: ...
def add_field(self, model: Any, field: Any): ...
def remove_field(self, model: Any, field: Any): ...
def alter_field(self, model: Type[Model], old_field: Field, new_field: Field, strict: bool = ...) -> None: ...
def remove_procedure(self, procedure_name: Any, param_types: Any = ...) -> None: ...
| 3,346 | Python | .py | 73 | 40.671233 | 114 | 0.617314 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,555 | creation.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/backends/base/creation.pyi | from typing import Any, Dict, Optional, Tuple, Union
from django.db.backends.base.base import BaseDatabaseWrapper
TEST_DATABASE_PREFIX: str
class BaseDatabaseCreation:
connection: Any = ...
def __init__(self, connection: BaseDatabaseWrapper) -> None: ...
def create_test_db(
self, verbosity: int = ..., autoclobber: bool = ..., serialize: bool = ..., keepdb: bool = ...
) -> str: ...
def set_as_test_mirror(
self, primary_settings_dict: Dict[str, Optional[Union[Dict[str, None], int, str]]]
) -> None: ...
def serialize_db_to_string(self) -> str: ...
def deserialize_db_from_string(self, data: str) -> None: ...
def clone_test_db(self, suffix: Any, verbosity: int = ..., autoclobber: bool = ..., keepdb: bool = ...) -> None: ...
def get_test_db_clone_settings(self, suffix: Any): ...
def destroy_test_db(
self, old_database_name: str = ..., verbosity: int = ..., keepdb: bool = ..., suffix: None = ...
) -> None: ...
def sql_table_creation_suffix(self): ...
def test_db_signature(self) -> Tuple[str, str, str, str]: ...
| 1,103 | Python | .py | 21 | 47.571429 | 120 | 0.620019 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,556 | base.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/backends/base/base.pyi | from typing import Any, Callable, Dict, Iterator, List, Optional
from django.db.backends.base.client import BaseDatabaseClient
from django.db.backends.base.creation import BaseDatabaseCreation
from django.db.backends.base.validation import BaseDatabaseValidation
from django.db.backends.utils import CursorDebugWrapper, CursorWrapper
from django.db.backends.base.schema import BaseDatabaseSchemaEditor
from django.db.backends.base.features import BaseDatabaseFeatures
from django.db.backends.base.introspection import BaseDatabaseIntrospection
NO_DB_ALIAS: str
class BaseDatabaseWrapper:
data_types: Any = ...
data_types_suffix: Any = ...
data_type_check_constraints: Any = ...
ops: Any = ...
vendor: str = ...
display_name: str = ...
SchemaEditorClass: Optional[BaseDatabaseSchemaEditor] = ...
client_class: Any = ...
creation_class: Any = ...
features_class: Any = ...
introspection_class: Any = ...
ops_class: Any = ...
validation_class: Any = ...
queries_limit: int = ...
connection: Any = ...
settings_dict: Any = ...
alias: str = ...
queries_log: Any = ...
force_debug_cursor: bool = ...
autocommit: bool = ...
in_atomic_block: bool = ...
savepoint_state: int = ...
savepoint_ids: Any = ...
commit_on_exit: bool = ...
needs_rollback: bool = ...
close_at: Optional[Any] = ...
closed_in_transaction: bool = ...
errors_occurred: bool = ...
allow_thread_sharing: bool = ...
run_on_commit: List[Any] = ...
run_commit_hooks_on_set_autocommit_on: bool = ...
execute_wrappers: List[Any] = ...
client: BaseDatabaseClient = ...
creation: BaseDatabaseCreation = ...
features: BaseDatabaseFeatures = ...
introspection: BaseDatabaseIntrospection = ...
validation: BaseDatabaseValidation = ...
def __init__(
self, settings_dict: Dict[str, Dict[str, str]], alias: str = ..., allow_thread_sharing: bool = ...
) -> None: ...
def ensure_timezone(self) -> bool: ...
def timezone(self): ...
def timezone_name(self): ...
@property
def queries_logged(self) -> bool: ...
@property
def queries(self) -> List[Dict[str, str]]: ...
def get_connection_params(self) -> None: ...
def get_new_connection(self, conn_params: Any) -> None: ...
def init_connection_state(self) -> None: ...
def create_cursor(self, name: Optional[Any] = ...) -> None: ...
def connect(self) -> None: ...
def check_settings(self) -> None: ...
def ensure_connection(self) -> None: ...
def cursor(self) -> CursorWrapper: ...
def commit(self) -> None: ...
def rollback(self) -> None: ...
def close(self) -> None: ...
def savepoint(self) -> str: ...
def savepoint_rollback(self, sid: str) -> None: ...
def savepoint_commit(self, sid: str) -> None: ...
def clean_savepoints(self) -> None: ...
def get_autocommit(self) -> bool: ...
def set_autocommit(self, autocommit: bool, force_begin_transaction_with_broken_autocommit: bool = ...) -> None: ...
def get_rollback(self) -> bool: ...
def set_rollback(self, rollback: bool) -> None: ...
def validate_no_atomic_block(self) -> None: ...
def validate_no_broken_transaction(self) -> None: ...
def constraint_checks_disabled(self) -> Iterator[None]: ...
def disable_constraint_checking(self): ...
def enable_constraint_checking(self) -> None: ...
def check_constraints(self, table_names: Optional[Any] = ...) -> None: ...
def is_usable(self) -> None: ...
def close_if_unusable_or_obsolete(self) -> None: ...
def validate_thread_sharing(self) -> None: ...
def prepare_database(self) -> None: ...
def wrap_database_errors(self) -> Any: ...
def chunked_cursor(self) -> CursorWrapper: ...
def make_debug_cursor(self, cursor: CursorWrapper) -> CursorDebugWrapper: ...
def make_cursor(self, cursor: CursorWrapper) -> CursorWrapper: ...
def temporary_connection(self) -> None: ...
def schema_editor(self, *args: Any, **kwargs: Any) -> BaseDatabaseSchemaEditor: ...
def on_commit(self, func: Callable) -> None: ...
def run_and_clear_commit_hooks(self) -> None: ...
def execute_wrapper(self, wrapper: Callable) -> Iterator[None]: ...
def copy(self, alias: None = ..., allow_thread_sharing: None = ...) -> Any: ...
| 4,348 | Python | .py | 96 | 40.604167 | 119 | 0.645784 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,557 | introspection.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/backends/base/introspection.pyi | from collections import namedtuple
from typing import Any, Dict, List, Optional, Set, Type
from django.db.backends.base.base import BaseDatabaseWrapper
from django.db.backends.utils import CursorWrapper
from django.db.models.base import Model
TableInfo = namedtuple("TableInfo", ["name", "type"])
FieldInfo = namedtuple("FieldInfo", "name type_code display_size internal_size precision scale null_ok default")
class BaseDatabaseIntrospection:
data_types_reverse: Any = ...
connection: Any = ...
def __init__(self, connection: BaseDatabaseWrapper) -> None: ...
def get_field_type(self, data_type: str, description: FieldInfo) -> str: ...
def table_name_converter(self, name: str) -> str: ...
def column_name_converter(self, name: str) -> str: ...
def table_names(self, cursor: Optional[CursorWrapper] = ..., include_views: bool = ...) -> List[str]: ...
def get_table_list(self, cursor: Any) -> None: ...
def django_table_names(self, only_existing: bool = ..., include_views: bool = ...) -> List[str]: ...
def installed_models(self, tables: List[str]) -> Set[Type[Model]]: ...
def sequence_list(self) -> List[Dict[str, str]]: ...
def get_sequences(self, cursor: Any, table_name: Any, table_fields: Any = ...) -> None: ...
def get_key_columns(self, cursor: Any, table_name: Any) -> None: ...
def get_primary_key_column(self, cursor: Any, table_name: Any): ...
def get_constraints(self, cursor: Any, table_name: Any) -> None: ...
| 1,490 | Python | .py | 23 | 61 | 112 | 0.680793 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,558 | operations.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/backends/base/operations.pyi | from datetime import date, datetime, timedelta, time
from decimal import Decimal
from typing import Any, List, Optional, Sequence, Tuple, Type, Union
from django.core.management.color import Style
from django.db.backends.base.base import BaseDatabaseWrapper
from django.db.backends.utils import CursorWrapper
from django.db.models.base import Model
from django.db.models.expressions import Case, Expression
from django.db.models.sql.compiler import SQLCompiler
from django.db import DefaultConnectionProxy
from django.db.models.fields import Field
_Connection = Union[DefaultConnectionProxy, BaseDatabaseWrapper]
class BaseDatabaseOperations:
compiler_module: str = ...
integer_field_ranges: Any = ...
set_operators: Any = ...
cast_data_types: Any = ...
cast_char_field_without_max_length: Any = ...
PRECEDING: str = ...
FOLLOWING: str = ...
UNBOUNDED_PRECEDING: Any = ...
UNBOUNDED_FOLLOWING: Any = ...
CURRENT_ROW: str = ...
explain_prefix: Any = ...
connection: _Connection = ...
def __init__(self, connection: Optional[_Connection]) -> None: ...
def autoinc_sql(self, table: str, column: str) -> None: ...
def bulk_batch_size(self, fields: Any, objs: Any): ...
def cache_key_culling_sql(self) -> str: ...
def unification_cast_sql(self, output_field: Field) -> str: ...
def date_extract_sql(self, lookup_type: None, field_name: None) -> Any: ...
def date_interval_sql(self, timedelta: None) -> Any: ...
def date_trunc_sql(self, lookup_type: None, field_name: None) -> Any: ...
def datetime_cast_date_sql(self, field_name: None, tzname: None) -> Any: ...
def datetime_cast_time_sql(self, field_name: None, tzname: None) -> Any: ...
def datetime_extract_sql(self, lookup_type: None, field_name: None, tzname: None) -> Any: ...
def datetime_trunc_sql(self, lookup_type: None, field_name: None, tzname: None) -> Any: ...
def time_trunc_sql(self, lookup_type: None, field_name: None) -> Any: ...
def time_extract_sql(self, lookup_type: None, field_name: None) -> Any: ...
def deferrable_sql(self) -> str: ...
def distinct_sql(self, fields: List[str], params: Optional[List[Any]]) -> Tuple[List[str], List[Any]]: ...
def fetch_returned_insert_id(self, cursor: Any): ...
def field_cast_sql(self, db_type: Optional[str], internal_type: str) -> str: ...
def force_no_ordering(self) -> List[Any]: ...
def for_update_sql(self, nowait: bool = ..., skip_locked: bool = ..., of: Any = ...): ...
def limit_offset_sql(self, low_mark: int, high_mark: Optional[int]) -> str: ...
def last_executed_query(self, cursor: Any, sql: Any, params: Any): ...
def last_insert_id(self, cursor: CursorWrapper, table_name: str, pk_name: str) -> int: ...
def lookup_cast(self, lookup_type: str, internal_type: str = ...) -> str: ...
def max_in_list_size(self) -> None: ...
def max_name_length(self) -> None: ...
def no_limit_value(self) -> Any: ...
def pk_default_value(self) -> str: ...
def prepare_sql_script(self, sql: Any): ...
def process_clob(self, value: str) -> str: ...
def return_insert_id(self) -> None: ...
def compiler(self, compiler_name: str) -> Type[SQLCompiler]: ...
def quote_name(self, name: str) -> Any: ...
def random_function_sql(self): ...
def regex_lookup(self, lookup_type: str) -> Any: ...
def savepoint_create_sql(self, sid: str) -> str: ...
def savepoint_commit_sql(self, sid: str) -> str: ...
def savepoint_rollback_sql(self, sid: str) -> str: ...
def set_time_zone_sql(self) -> str: ...
def sql_flush(self, style: None, tables: None, sequences: None, allow_cascade: bool = ...) -> Any: ...
def execute_sql_flush(self, using: str, sql_list: List[str]) -> None: ...
def sequence_reset_by_name_sql(self, style: None, sequences: List[Any]) -> List[Any]: ...
def sequence_reset_sql(self, style: Style, model_list: Sequence[Type[Model]]) -> List[Any]: ...
def start_transaction_sql(self) -> str: ...
def end_transaction_sql(self, success: bool = ...) -> str: ...
def tablespace_sql(self, tablespace: Optional[str], inline: bool = ...) -> str: ...
def prep_for_like_query(self, x: str) -> str: ...
prep_for_iexact_query: Any = ...
def validate_autopk_value(self, value: int) -> int: ...
def adapt_unknown_value(self, value: Any) -> Any: ...
def adapt_datefield_value(self, value: Optional[date]) -> Optional[str]: ...
def adapt_datetimefield_value(self, value: Optional[datetime]) -> Optional[str]: ...
def adapt_timefield_value(self, value: Optional[Union[datetime, time]]) -> Optional[str]: ...
def adapt_decimalfield_value(
self, value: Optional[Decimal], max_digits: Optional[int] = ..., decimal_places: Optional[int] = ...
) -> Optional[str]: ...
def adapt_ipaddressfield_value(self, value: Optional[str]) -> Optional[str]: ...
def year_lookup_bounds_for_date_field(self, value: int) -> List[str]: ...
def year_lookup_bounds_for_datetime_field(self, value: int) -> List[str]: ...
def get_db_converters(self, expression: Expression) -> List[Any]: ...
def convert_durationfield_value(
self, value: Optional[float], expression: Expression, connection: _Connection
) -> Optional[timedelta]: ...
def check_expression_support(self, expression: Any) -> None: ...
def combine_expression(self, connector: str, sub_expressions: List[str]) -> str: ...
def combine_duration_expression(self, connector: Any, sub_expressions: Any): ...
def binary_placeholder_sql(self, value: Optional[Case]) -> str: ...
def modify_insert_params(self, placeholder: str, params: Any) -> Any: ...
def integer_field_range(self, internal_type: Any): ...
def subtract_temporals(self, internal_type: Any, lhs: Any, rhs: Any): ...
def window_frame_start(self, start: Any): ...
def window_frame_end(self, end: Any): ...
def window_frame_rows_start_end(self, start: Optional[int] = ..., end: Optional[int] = ...) -> Any: ...
def window_frame_range_start_end(self, start: Optional[int] = ..., end: Optional[int] = ...) -> Any: ...
def explain_query_prefix(self, format: Optional[str] = ..., **options: Any) -> str: ...
| 6,237 | Python | .py | 100 | 57.77 | 110 | 0.65384 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,559 | base.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/backends/dummy/base.pyi | from typing import Any
from django.db.backends.base.base import BaseDatabaseWrapper
from django.db.backends.base.client import BaseDatabaseClient
from django.db.backends.base.creation import BaseDatabaseCreation
from django.db.backends.base.introspection import BaseDatabaseIntrospection
from django.db.backends.base.operations import BaseDatabaseOperations
def complain(*args: Any, **kwargs: Any) -> Any: ...
def ignore(*args: Any, **kwargs: Any) -> None: ...
class DatabaseOperations(BaseDatabaseOperations):
quote_name: Any = ...
class DatabaseClient(BaseDatabaseClient):
runshell: Any = ...
class DatabaseCreation(BaseDatabaseCreation):
create_test_db: Any = ...
destroy_test_db: Any = ...
class DatabaseIntrospection(BaseDatabaseIntrospection):
get_table_list: Any = ...
get_table_description: Any = ...
get_relations: Any = ...
get_indexes: Any = ...
get_key_columns: Any = ...
class DatabaseWrapper(BaseDatabaseWrapper):
operators: Any = ...
ensure_connection: Any = ...
| 1,029 | Python | .py | 24 | 39.75 | 75 | 0.753507 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,560 | base.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/backends/sqlite3/base.pyi | from sqlite3 import dbapi2 as Database
from typing import Any, Callable
from django.db.backends.base.base import BaseDatabaseWrapper
def decoder(conv_func: Callable) -> Callable: ...
class DatabaseWrapper(BaseDatabaseWrapper): ...
FORMAT_QMARK_REGEX: Any
class SQLiteCursorWrapper(Database.Cursor): ...
def check_sqlite_version() -> None: ...
| 349 | Python | .py | 8 | 41.875 | 60 | 0.8 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,561 | introspection.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/db/backends/sqlite3/introspection.pyi | from typing import Any, Optional
from django.db.backends.base.introspection import BaseDatabaseIntrospection
field_size_re: Any
def get_field_size(name: str) -> Optional[int]: ...
class FlexibleFieldLookupDict:
base_data_types_reverse: Any = ...
def __getitem__(self, key: str) -> Any: ...
class DatabaseIntrospection(BaseDatabaseIntrospection): ...
| 363 | Python | .py | 8 | 42.75 | 75 | 0.762857 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,562 | csrf.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/csrf.pyi | from django.http.request import HttpRequest
from django.http.response import HttpResponseForbidden
CSRF_FAILURE_TEMPLATE: str
CSRF_FAILURE_TEMPLATE_NAME: str
def csrf_failure(request: HttpRequest, reason: str = ..., template_name: str = ...) -> HttpResponseForbidden: ...
| 274 | Python | .py | 5 | 53.4 | 113 | 0.794007 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,563 | debug.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/debug.pyi | from importlib.abc import SourceLoader
from types import TracebackType
from typing import Any, Callable, Dict, List, MutableMapping, Optional, Type, Union
from django.http.request import HttpRequest, QueryDict
from django.http.response import Http404, HttpResponse
from django.utils.safestring import SafeText
DEBUG_ENGINE: Any
HIDDEN_SETTINGS: Any
CLEANSED_SUBSTITUTE: str
CURRENT_DIR: Any
class CallableSettingWrapper:
def __init__(self, callable_setting: Union[Callable, Type[Any]]) -> None: ...
def cleanse_setting(key: Union[int, str], value: Any) -> Any: ...
def get_safe_settings() -> Dict[str, Any]: ...
def technical_500_response(request: Any, exc_type: Any, exc_value: Any, tb: Any, status_code: int = ...): ...
def get_default_exception_reporter_filter() -> ExceptionReporterFilter: ...
def get_exception_reporter_filter(request: Optional[HttpRequest]) -> ExceptionReporterFilter: ...
class ExceptionReporterFilter:
def get_post_parameters(self, request: Any): ...
def get_traceback_frame_variables(self, request: Any, tb_frame: Any): ...
class SafeExceptionReporterFilter(ExceptionReporterFilter):
def is_active(self, request: Optional[HttpRequest]) -> bool: ...
def get_cleansed_multivaluedict(self, request: HttpRequest, multivaluedict: QueryDict) -> QueryDict: ...
def get_post_parameters(self, request: Optional[HttpRequest]) -> MutableMapping[str, Any]: ...
def cleanse_special_types(self, request: Optional[HttpRequest], value: Any) -> Any: ...
def get_traceback_frame_variables(self, request: Any, tb_frame: Any): ...
class ExceptionReporter:
request: Optional[HttpRequest] = ...
filter: ExceptionReporterFilter = ...
exc_type: Optional[Type[BaseException]] = ...
exc_value: Optional[str] = ...
tb: Optional[TracebackType] = ...
is_email: bool = ...
template_info: None = ...
template_does_not_exist: bool = ...
postmortem: None = ...
def __init__(
self,
request: Optional[HttpRequest],
exc_type: Optional[Type[BaseException]],
exc_value: Optional[Union[str, BaseException]],
tb: Optional[TracebackType],
is_email: bool = ...,
) -> None: ...
def get_traceback_data(self) -> Dict[str, Any]: ...
def get_traceback_html(self) -> SafeText: ...
def get_traceback_text(self) -> SafeText: ...
def get_traceback_frames(self) -> List[Any]: ...
def _get_lines_from_file(
self,
filename: str,
lineno: int,
context_lines: int,
loader: Optional[SourceLoader] = ...,
module_name: Optional[str] = ...,
): ...
def technical_404_response(request: HttpRequest, exception: Http404) -> HttpResponse: ...
def default_urlconf(request: Optional[HttpResponse]) -> HttpResponse: ...
| 2,781 | Python | .py | 58 | 43.431034 | 109 | 0.693186 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,564 | i18n.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/i18n.pyi | from typing import Any, Callable, Dict, List, Optional, Union
from django.http.request import HttpRequest
from django.http.response import HttpResponse
from django.utils.translation.trans_real import DjangoTranslation
from django.views.generic import View
LANGUAGE_QUERY_PARAMETER: str
def set_language(request: HttpRequest) -> HttpResponse: ...
def get_formats() -> Dict[str, Union[List[str], int, str]]: ...
js_catalog_template: str
def render_javascript_catalog(catalog: Optional[Any] = ..., plural: Optional[Any] = ...): ...
def null_javascript_catalog(request: Any, domain: Optional[Any] = ..., packages: Optional[Any] = ...): ...
class JavaScriptCatalog(View):
head: Callable
domain: str = ...
packages: List[str] = ...
translation: DjangoTranslation = ...
def get(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ...
def get_paths(self, packages: List[str]) -> List[str]: ...
def get_plural(self) -> None: ...
def get_catalog(self) -> Dict[str, Union[List[str], str]]: ...
def get_context_data(self, **kwargs: Any) -> Dict[str, Any]: ...
def render_to_response(self, context: Dict[str, Any], **response_kwargs: Any) -> HttpResponse: ...
class JSONCatalog(JavaScriptCatalog): ...
| 1,257 | Python | .py | 23 | 51.565217 | 106 | 0.699837 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,565 | static.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/static.pyi | from typing import Any, Optional
from django.http.request import HttpRequest
from django.http.response import FileResponse
def serve(request: HttpRequest, path: str, document_root: str = ..., show_indexes: bool = ...) -> FileResponse: ...
DEFAULT_DIRECTORY_INDEX_TEMPLATE: str
template_translatable: Any
def directory_index(path: Any, fullpath: Any): ...
def was_modified_since(header: Optional[str] = ..., mtime: float = ..., size: int = ...) -> bool: ...
| 461 | Python | .py | 8 | 56.125 | 115 | 0.728285 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,566 | defaults.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/defaults.pyi | from typing import Optional
from django.http.request import HttpRequest
from django.http.response import (
HttpResponseBadRequest,
HttpResponseForbidden,
HttpResponseNotFound,
HttpResponseServerError,
)
ERROR_404_TEMPLATE_NAME: str
ERROR_403_TEMPLATE_NAME: str
ERROR_400_TEMPLATE_NAME: str
ERROR_500_TEMPLATE_NAME: str
def page_not_found(
request: HttpRequest, exception: Optional[Exception], template_name: str = ...
) -> HttpResponseNotFound: ...
def server_error(request: HttpRequest, template_name: str = ...) -> HttpResponseServerError: ...
def bad_request(request: HttpRequest, exception: Exception, template_name: str = ...) -> HttpResponseBadRequest: ...
def permission_denied(
request: HttpRequest, exception: Exception, template_name: str = ...
) -> HttpResponseForbidden: ...
| 814 | Python | .py | 20 | 38.35 | 116 | 0.769912 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,567 | detail.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/generic/detail.pyi | from typing import Any, Optional, Type
from django.views.generic.base import ContextMixin, TemplateResponseMixin, View
from django.db import models
from django.http import HttpRequest, HttpResponse
class SingleObjectMixin(ContextMixin):
model: Type[models.Model] = ...
queryset: models.query.QuerySet = ...
slug_field: str = ...
context_object_name: str = ...
slug_url_kwarg: str = ...
pk_url_kwarg: str = ...
query_pk_and_slug: bool = ...
def get_object(self, queryset: Optional[models.query.QuerySet] = ...) -> models.Model: ...
def get_queryset(self) -> models.query.QuerySet: ...
def get_slug_field(self) -> str: ...
def get_context_object_name(self, obj: Any) -> Optional[str]: ...
class BaseDetailView(SingleObjectMixin, View):
def get(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ...
class SingleObjectTemplateResponseMixin(TemplateResponseMixin):
template_name_field: Optional[str] = ...
template_name_suffix: str = ...
class DetailView(SingleObjectTemplateResponseMixin, BaseDetailView): ...
| 1,090 | Python | .py | 22 | 45.727273 | 94 | 0.712806 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,568 | edit.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/generic/edit.pyi | from typing import Any, Callable, Dict, Optional, Sequence, Type, Union
from django.forms.forms import BaseForm
from django.views.generic.base import ContextMixin, TemplateResponseMixin, View
from django.views.generic.detail import BaseDetailView, SingleObjectMixin, SingleObjectTemplateResponseMixin
from typing_extensions import Literal
from django.http import HttpRequest, HttpResponse
class FormMixin(ContextMixin):
initial: Dict[str, Any] = ...
form_class: Optional[Type[BaseForm]] = ...
success_url: Optional[Union[str, Callable[..., Any]]] = ...
prefix: Optional[str] = ...
def get_initial(self) -> Dict[str, Any]: ...
def get_prefix(self) -> Optional[str]: ...
def get_form_class(self) -> Type[BaseForm]: ...
def get_form(self, form_class: Optional[Type[BaseForm]] = ...) -> BaseForm: ...
def get_form_kwargs(self) -> Dict[str, Any]: ...
def get_success_url(self) -> str: ...
def form_valid(self, form: BaseForm) -> HttpResponse: ...
def form_invalid(self, form: BaseForm) -> HttpResponse: ...
class ModelFormMixin(FormMixin, SingleObjectMixin):
fields: Optional[Union[Sequence[str], Literal["__all__"]]] = ...
class ProcessFormView(View):
def get(self, request: HttpRequest, *args: str, **kwargs: Any) -> HttpResponse: ...
def post(self, request: HttpRequest, *args: str, **kwargs: Any) -> HttpResponse: ...
def put(self, *args: str, **kwargs: Any) -> HttpResponse: ...
class BaseFormView(FormMixin, ProcessFormView): ...
class FormView(TemplateResponseMixin, BaseFormView): ...
class BaseCreateView(ModelFormMixin, ProcessFormView): ...
class CreateView(SingleObjectTemplateResponseMixin, BaseCreateView): ...
class BaseUpdateView(ModelFormMixin, ProcessFormView): ...
class UpdateView(SingleObjectTemplateResponseMixin, BaseUpdateView): ...
class DeletionMixin:
success_url: Optional[str] = ...
def post(self, request: HttpRequest, *args: str, **kwargs: Any) -> HttpResponse: ...
def delete(self, request: HttpRequest, *args: str, **kwargs: Any) -> HttpResponse: ...
def get_success_url(self) -> str: ...
class BaseDeleteView(DeletionMixin, BaseDetailView): ...
class DeleteView(SingleObjectTemplateResponseMixin, BaseDeleteView): ...
| 2,234 | Python | .py | 38 | 55.473684 | 108 | 0.723492 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,569 | __init__.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/generic/__init__.pyi | from .base import RedirectView as RedirectView, TemplateView as TemplateView, View as View
from .dates import (
ArchiveIndexView as ArchiveIndexView,
DateDetailView as DateDetailView,
DayArchiveView as DayArchiveView,
MonthArchiveView as MonthArchiveView,
TodayArchiveView as TodayArchiveView,
WeekArchiveView as WeekArchiveView,
YearArchiveView as YearArchiveView,
)
from .detail import DetailView as DetailView
from .edit import CreateView as CreateView, DeleteView as DeleteView, FormView as FormView, UpdateView as UpdateView
from .list import ListView as ListView
class GenericViewError(Exception): ...
| 637 | Python | .py | 14 | 42.428571 | 116 | 0.827974 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,570 | base.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/generic/base.pyi | from typing import Any, Callable, Dict, List, Optional, Type
from django import http
class ContextMixin:
def get_context_data(self, **kwargs: Any) -> Dict[str, Any]: ...
class View:
http_method_names: List[str] = ...
request: http.HttpRequest = ...
args: Any = ...
kwargs: Any = ...
def __init__(self, **kwargs: Any) -> None: ...
@classmethod
def as_view(cls: Any, **initkwargs: Any) -> Callable[..., http.HttpResponse]: ...
def setup(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> None: ...
def dispatch(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...
def http_method_not_allowed(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...
def options(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...
class TemplateResponseMixin:
template_name: str = ...
template_engine: Optional[str] = ...
response_class: Type[http.HttpResponse] = ...
content_type: Optional[str] = ...
request: http.HttpRequest = ...
def render_to_response(self, context: Dict[str, Any], **response_kwargs: Any) -> http.HttpResponse: ...
def get_template_names(self) -> List[str]: ...
class TemplateView(TemplateResponseMixin, ContextMixin, View):
def get(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...
class RedirectView(View):
permanent: bool = ...
url: Optional[str] = ...
pattern_name: Optional[str] = ...
query_string: bool = ...
def get_redirect_url(self, *args: Any, **kwargs: Any) -> Optional[str]: ...
def get(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...
def head(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...
def post(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...
def delete(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...
def put(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...
def patch(self, request: http.HttpRequest, *args: Any, **kwargs: Any) -> http.HttpResponse: ...
| 2,239 | Python | .py | 38 | 54.5 | 117 | 0.656036 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,571 | list.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/generic/list.pyi | from typing import Any, Optional, Sequence, Tuple, Type
from django.core.paginator import Paginator
from django.db.models.query import QuerySet, _BaseQuerySet
from django.views.generic.base import ContextMixin, TemplateResponseMixin, View
from django.db.models import Model
from django.http import HttpRequest, HttpResponse
class MultipleObjectMixin(ContextMixin):
allow_empty: bool = ...
queryset: Optional[QuerySet] = ...
model: Optional[Type[Model]] = ...
paginate_by: int = ...
paginate_orphans: int = ...
context_object_name: Optional[str] = ...
paginator_class: Type[Paginator] = ...
page_kwarg: str = ...
ordering: Sequence[str] = ...
def get_queryset(self) -> QuerySet: ...
def get_ordering(self) -> Sequence[str]: ...
def paginate_queryset(self, queryset: _BaseQuerySet, page_size: int) -> Tuple[Paginator, int, QuerySet, bool]: ...
def get_paginate_by(self, queryset: _BaseQuerySet) -> Optional[int]: ...
def get_paginator(
self, queryset: QuerySet, per_page: int, orphans: int = ..., allow_empty_first_page: bool = ..., **kwargs: Any
) -> Paginator: ...
def get_paginate_orphans(self) -> int: ...
def get_allow_empty(self) -> bool: ...
def get_context_object_name(self, object_list: _BaseQuerySet) -> Optional[str]: ...
class BaseListView(MultipleObjectMixin, View):
def get(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ...
class MultipleObjectTemplateResponseMixin(TemplateResponseMixin):
template_name_suffix: str = ...
class ListView(MultipleObjectTemplateResponseMixin, BaseListView): ...
| 1,625 | Python | .py | 31 | 48.387097 | 118 | 0.70529 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,572 | dates.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/generic/dates.pyi | import datetime
from typing import Any, Dict, Optional, Sequence, Tuple
from django.views.generic.base import View
from django.views.generic.detail import BaseDetailView, SingleObjectTemplateResponseMixin
from django.views.generic.list import MultipleObjectMixin, MultipleObjectTemplateResponseMixin
from django.db import models
from django.http import HttpRequest, HttpResponse
class YearMixin:
year_format: str = ...
year: Optional[str] = ...
def get_year_format(self) -> str: ...
def get_year(self) -> str: ...
def get_next_year(self, date: datetime.date) -> Optional[datetime.date]: ...
def get_previous_year(self, date: datetime.date) -> Optional[datetime.date]: ...
class MonthMixin:
month_format: str = ...
month: Optional[str] = ...
def get_month_format(self) -> str: ...
def get_month(self) -> str: ...
def get_next_month(self, date: datetime.date) -> Optional[datetime.date]: ...
def get_previous_month(self, date: datetime.date) -> Optional[datetime.date]: ...
class DayMixin:
day_format: str = ...
day: Optional[str] = ...
def get_day_format(self) -> str: ...
def get_day(self) -> str: ...
def get_next_day(self, date: datetime.date) -> Optional[datetime.date]: ...
def get_previous_day(self, date: datetime.date) -> Optional[datetime.date]: ...
class WeekMixin:
week_format: str = ...
week: Optional[str] = ...
def get_week_format(self) -> str: ...
def get_week(self) -> str: ...
def get_next_week(self, date: datetime.date) -> Optional[datetime.date]: ...
def get_previous_week(self, date: datetime.date) -> Optional[datetime.date]: ...
class DateMixin:
date_field: Optional[str] = ...
allow_future: bool = ...
def get_date_field(self) -> str: ...
def get_allow_future(self) -> bool: ...
def uses_datetime_field(self) -> bool: ...
DatedItems = Tuple[Optional[Sequence[datetime.date]], Sequence[object], Dict[str, Any]]
class BaseDateListView(MultipleObjectMixin, DateMixin, View):
date_list_period: str = ...
def render_to_response(self, context: Dict[str, Any], **response_kwargs: Any) -> HttpResponse: ...
def get(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ...
def get_dated_items(self) -> DatedItems: ...
def get_dated_queryset(self, **lookup: Any) -> models.query.QuerySet: ...
def get_date_list_period(self) -> str: ...
def get_date_list(
self, queryset: models.query.QuerySet, date_type: Optional[str] = ..., ordering: str = ...
) -> models.query.QuerySet: ...
class BaseArchiveIndexView(BaseDateListView): ...
class ArchiveIndexView(MultipleObjectTemplateResponseMixin, BaseArchiveIndexView): ...
class BaseYearArchiveView(YearMixin, BaseDateListView):
make_object_list: bool = ...
def get_make_object_list(self) -> bool: ...
class YearArchiveView(MultipleObjectTemplateResponseMixin, BaseYearArchiveView): ...
class BaseMonthArchiveView(YearMixin, MonthMixin, BaseDateListView): ...
class MonthArchiveView(MultipleObjectTemplateResponseMixin, BaseMonthArchiveView): ...
class BaseWeekArchiveView(YearMixin, WeekMixin, BaseDateListView): ...
class WeekArchiveView(MultipleObjectTemplateResponseMixin, BaseWeekArchiveView): ...
class BaseDayArchiveView(YearMixin, MonthMixin, DayMixin, BaseDateListView): ...
class DayArchiveView(MultipleObjectTemplateResponseMixin, BaseDayArchiveView): ...
class BaseTodayArchiveView(BaseDayArchiveView): ...
class TodayArchiveView(MultipleObjectTemplateResponseMixin, BaseTodayArchiveView): ...
class BaseDateDetailView(YearMixin, MonthMixin, DayMixin, DateMixin, BaseDetailView): ...
class DateDetailView(SingleObjectTemplateResponseMixin, BaseDateDetailView): ...
def timezone_today() -> datetime.date: ...
| 3,771 | Python | .py | 69 | 51.086957 | 102 | 0.724858 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,573 | csrf.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/decorators/csrf.pyi | from typing import Any, Callable, TypeVar
from django.middleware.csrf import CsrfViewMiddleware
csrf_protect: Any
class _EnsureCsrfToken(CsrfViewMiddleware): ...
requires_csrf_token: Any
class _EnsureCsrfCookie(CsrfViewMiddleware):
get_response: None
def process_view(self, request: Any, callback: Any, callback_args: Any, callback_kwargs: Any): ...
ensure_csrf_cookie: Any
_F = TypeVar("_F", bound=Callable[..., Any])
def csrf_exempt(view_func: _F) -> _F: ...
| 477 | Python | .py | 11 | 40.909091 | 102 | 0.755459 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,574 | gzip.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/decorators/gzip.pyi | from typing import Callable, TypeVar, Any
_C = TypeVar("_C", bound=Callable[..., Any])
def gzip_page(view_func: _C) -> _C: ...
| 129 | Python | .py | 3 | 41.333333 | 44 | 0.645161 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,575 | cache.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/decorators/cache.pyi | from typing import Any, Callable, Optional, TypeVar
_F = TypeVar("_F", bound=Callable[..., Any])
def cache_page(timeout: float, *, cache: Optional[Any] = ..., key_prefix: Optional[Any] = ...) -> Callable: ...
def cache_control(**kwargs: Any) -> Callable: ...
def never_cache(view_func: _F) -> _F: ...
| 303 | Python | .py | 5 | 59.2 | 111 | 0.641892 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,576 | debug.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/decorators/debug.pyi | from typing import Any, Callable
def sensitive_variables(*variables: Any) -> Callable: ...
def sensitive_post_parameters(*parameters: Any) -> Callable: ...
| 157 | Python | .py | 3 | 51 | 64 | 0.751634 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,577 | http.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/decorators/http.pyi | from typing import Any, Callable, List, Optional, TypeVar
_F = TypeVar("_F", bound=Callable[..., Any])
def conditional_page(_F) -> _F: ...
def require_http_methods(request_method_list: List[str]) -> Callable: ...
def require_GET(_F) -> _F: ...
def require_POST(_F) -> _F: ...
def require_safe(_F) -> _F: ...
def condition(etag_func: Optional[Callable] = ..., last_modified_func: Optional[Callable] = ...) -> Callable: ...
def etag(etag_func: Callable[..., Any]) -> Callable[[_F], _F]: ...
def last_modified(last_modified_func: Callable[..., Any]) -> Callable[[_F], _F]: ...
| 576 | Python | .py | 10 | 56.4 | 113 | 0.629433 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,578 | vary.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/decorators/vary.pyi | from typing import Any, Callable, TypeVar
_F = TypeVar("_F", bound=Callable[..., Any])
def vary_on_headers(*headers: Any) -> Callable: ...
def vary_on_cookie(func: _F) -> _F: ...
| 181 | Python | .py | 4 | 43.75 | 51 | 0.651429 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,579 | clickjacking.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/views/decorators/clickjacking.pyi | from typing import Callable, TypeVar, Any
_F = TypeVar("_F", bound=Callable[..., Any])
def xframe_options_deny(view_func: _F) -> _F: ...
def xframe_options_sameorigin(view_func: _F) -> _F: ...
def xframe_options_exempt(view_func: _F) -> _F: ...
| 247 | Python | .py | 5 | 48 | 55 | 0.654167 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,580 | duration.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/duration.pyi | from datetime import timedelta
def duration_string(duration: timedelta) -> str: ...
def duration_iso_string(duration: timedelta) -> str: ...
def duration_microseconds(delta: timedelta) -> int: ...
| 198 | Python | .py | 4 | 48.25 | 56 | 0.746114 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,581 | itercompat.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/itercompat.pyi | from typing import Any
def is_iterable(x: Any) -> bool: ...
| 61 | Python | .py | 2 | 29 | 36 | 0.689655 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,582 | _os.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/_os.pyi | from os.path import abspath
from pathlib import Path
from typing import Any, Union
abspathu = abspath
def upath(path: Any): ...
def npath(path: Any): ...
def safe_join(base: Union[bytes, str], *paths: Any) -> str: ...
def symlinks_supported() -> Any: ...
def to_path(value: Union[Path, str]) -> Path: ...
| 307 | Python | .py | 9 | 32.888889 | 63 | 0.692568 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,583 | dateformat.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/dateformat.pyi | from datetime import datetime, date
from typing import Any, Optional, Union
from django.utils.timezone import FixedOffset
re_formatchars: Any
re_escaped: Any
class Formatter:
def format(self, formatstr: str) -> str: ...
class TimeFormat(Formatter):
data: Union[datetime, str] = ...
timezone: Optional[FixedOffset] = ...
def __init__(self, obj: Union[datetime, str]) -> None: ...
def a(self) -> str: ...
def A(self) -> str: ...
def B(self) -> None: ...
def e(self) -> str: ...
def f(self) -> Union[int, str]: ...
def g(self) -> int: ...
def G(self) -> int: ...
def h(self) -> str: ...
def H(self) -> str: ...
def i(self) -> str: ...
def O(self) -> str: ...
def P(self) -> str: ...
def s(self) -> str: ...
def T(self) -> str: ...
def u(self) -> str: ...
def Z(self) -> Union[int, str]: ...
class DateFormat(TimeFormat):
data: Union[datetime, str]
timezone: Optional[FixedOffset]
year_days: Any = ...
def b(self): ...
def c(self) -> str: ...
def d(self) -> str: ...
def D(self): ...
def E(self): ...
def F(self): ...
def I(self) -> str: ...
def j(self) -> int: ...
def l(self): ...
def L(self) -> bool: ...
def m(self) -> str: ...
def M(self) -> str: ...
def n(self) -> int: ...
def N(self): ...
def o(self) -> int: ...
def r(self) -> str: ...
def S(self) -> str: ...
def t(self) -> str: ...
def U(self) -> int: ...
def w(self) -> int: ...
def W(self) -> int: ...
def y(self) -> str: ...
def Y(self) -> int: ...
def z(self) -> int: ...
def format(value: Union[datetime, str, date], format_string: str) -> str: ...
def time_format(value: Union[datetime, str], format_string: str) -> str: ...
| 1,782 | Python | .py | 57 | 26.859649 | 77 | 0.525887 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,584 | cache.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/cache.pyi | from typing import Any, Optional, Tuple
from django.core.cache.backends.base import BaseCache
from django.core.handlers.wsgi import WSGIRequest
from django.http.response import HttpResponse, HttpResponseBase
cc_delim_re: Any
def patch_cache_control(response: HttpResponseBase, **kwargs: Any) -> None: ...
def get_max_age(response: HttpResponse) -> Optional[int]: ...
def set_response_etag(response: HttpResponseBase) -> HttpResponseBase: ...
def get_conditional_response(
request: WSGIRequest,
etag: Optional[str] = ...,
last_modified: Optional[int] = ...,
response: Optional[HttpResponse] = ...,
) -> Optional[HttpResponse]: ...
def patch_response_headers(response: HttpResponseBase, cache_timeout: float = ...) -> None: ...
def add_never_cache_headers(response: HttpResponseBase) -> None: ...
def patch_vary_headers(response: HttpResponseBase, newheaders: Tuple[str]) -> None: ...
def has_vary_header(response: HttpResponse, header_query: str) -> bool: ...
def get_cache_key(
request: WSGIRequest, key_prefix: Optional[str] = ..., method: str = ..., cache: Optional[BaseCache] = ...
) -> Optional[str]: ...
def learn_cache_key(
request: WSGIRequest,
response: HttpResponse,
cache_timeout: Optional[float] = ...,
key_prefix: Optional[str] = ...,
cache: Optional[BaseCache] = ...,
) -> str: ...
| 1,338 | Python | .py | 28 | 45.25 | 110 | 0.713083 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,585 | functional.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/functional.pyi | from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union, TypeVar, Generic, overload
from functools import wraps as wraps # noqa: F401
from django.db.models.base import Model
def curry(_curried_func: Any, *args: Any, **kwargs: Any): ...
_T = TypeVar("_T")
class cached_property(Generic[_T]):
func: Callable[..., _T] = ...
__doc__: Any = ...
name: str = ...
def __init__(self, func: Callable[..., _T], name: Optional[str] = ...): ...
@overload
def __get__(self, instance: None, cls: Type[Any] = ...) -> "cached_property[_T]": ...
@overload
def __get__(self, instance: object, cls: Type[Any] = ...) -> _T: ...
class Promise: ...
def lazy(func: Union[Callable, Type[str]], *resultclasses: Any) -> Callable: ...
def lazystr(text: Any): ...
def keep_lazy(*resultclasses: Any) -> Callable: ...
def keep_lazy_text(func: Callable) -> Callable: ...
empty: Any
def new_method_proxy(func: Any): ...
class LazyObject:
def __init__(self) -> None: ...
__getattr__: Any = ...
def __setattr__(self, name: str, value: Any) -> None: ...
def __delattr__(self, name: str) -> None: ...
def __reduce__(self) -> Tuple[Callable, Tuple[Model]]: ...
def __copy__(self): ...
def __deepcopy__(self, memo: Any): ...
__bytes__: Any = ...
__bool__: Any = ...
__dir__: Any = ...
__class__: Any = ...
__ne__: Any = ...
__hash__: Any = ...
__getitem__: Any = ...
__setitem__: Any = ...
__delitem__: Any = ...
__iter__: Any = ...
__len__: Any = ...
__contains__: Any = ...
def unpickle_lazyobject(wrapped: Model) -> Model: ...
class SimpleLazyObject(LazyObject):
def __init__(self, func: Callable) -> None: ...
def __copy__(self) -> List[int]: ...
def __deepcopy__(self, memo: Dict[Any, Any]) -> List[int]: ...
def partition(predicate: Callable, values: List[Model]) -> Tuple[List[Model], List[Model]]: ...
| 1,923 | Python | .py | 47 | 37.106383 | 102 | 0.564914 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,586 | numberformat.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/numberformat.pyi | from decimal import Decimal
from typing import Optional, Sequence, Union
def format(
number: Union[Decimal, float, str],
decimal_sep: str,
decimal_pos: Optional[int] = ...,
grouping: Union[int, Sequence[int]] = ...,
thousand_sep: str = ...,
force_grouping: bool = ...,
use_l10n: Optional[bool] = ...,
) -> str: ...
| 344 | Python | .py | 11 | 27.636364 | 46 | 0.63253 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,587 | hashable.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/hashable.pyi | from typing import Any
def make_hashable(value: Any) -> Any: ...
| 66 | Python | .py | 2 | 31.5 | 41 | 0.714286 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,588 | datastructures.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/datastructures.pyi | from typing import (
Any,
Callable,
Dict,
Iterable,
List,
Mapping,
MutableMapping,
MutableSet,
Tuple,
TypeVar,
Union,
overload,
Iterator,
Optional,
)
from typing_extensions import Literal
_K = TypeVar("_K")
_V = TypeVar("_V")
class OrderedSet(MutableSet[_K]):
dict: Dict[_K, None] = ...
def __init__(self, iterable: Optional[Iterable[_K]] = ...) -> None: ...
def __contains__(self, item: object) -> bool: ...
def __iter__(self) -> Iterator[_K]: ...
def __len__(self) -> int: ...
def add(self, x: _K) -> None: ...
def discard(self, item: _K) -> None: ...
class MultiValueDictKeyError(KeyError): ...
_D = TypeVar("_D", bound="MultiValueDict")
class MultiValueDict(MutableMapping[_K, _V]):
@overload
def __init__(self, key_to_list_mapping: Mapping[_K, Optional[List[_V]]] = ...) -> None: ...
@overload
def __init__(self, key_to_list_mapping: Iterable[Tuple[_K, List[_V]]] = ...) -> None: ...
def getlist(self, key: _K, default: Any = ...) -> List[_V]: ...
def setlist(self, key: _K, list_: List[_V]) -> None: ...
def setlistdefault(self, key: _K, default_list: Optional[List[_V]] = ...) -> List[_V]: ...
def appendlist(self, key: _K, value: _V) -> None: ...
def lists(self) -> Iterable[Tuple[_K, List[_V]]]: ...
def dict(self) -> Dict[_K, Union[_V, List[_V]]]: ...
def copy(self: _D) -> _D: ...
# These overrides are needed to convince mypy that this isn't an abstract class
def __delitem__(self, item: _K) -> None: ...
def __getitem__(self, item: _K) -> Union[_V, Literal[[]]]: ... # type: ignore
def __setitem__(self, k: _K, v: Union[_V, List[_V]]) -> None: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[_K]: ...
class ImmutableList(Tuple[_V, ...]):
warning: str = ...
def __init__(self, *args: Any, warning: str = ..., **kwargs: Any) -> None: ...
def complain(self, *wargs: Any, **kwargs: Any) -> None: ...
class DictWrapper(Dict[str, _V]):
func: Callable[[_V], _V] = ...
prefix: str = ...
@overload
def __init__(self, data: Mapping[str, _V], func: Callable[[_V], _V], prefix: str) -> None: ...
@overload
def __init__(self, data: Iterable[Tuple[str, _V]], func: Callable[[_V], _V], prefix: str) -> None: ...
_T = TypeVar("_T", bound="CaseInsensitiveMapping")
class CaseInsensitiveMapping(Mapping):
def __init__(self, data: Any) -> None: ...
def __getitem__(self, key: str) -> Any: ...
def __len__(self) -> int: ...
def __iter__(self) -> Iterator[str]: ...
def copy(self: _T) -> _T: ...
| 2,624 | Python | .py | 65 | 36.015385 | 106 | 0.559043 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,589 | formats.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/formats.pyi | from datetime import datetime, date, time
from decimal import Decimal
from typing import Any, Iterator, List, Optional, Union
ISO_INPUT_FORMATS: Any
FORMAT_SETTINGS: Any
def reset_format_cache() -> None: ...
def iter_format_modules(lang: str, format_module_path: Optional[Union[List[str], str]] = ...) -> Iterator[Any]: ...
def get_format_modules(lang: Optional[str] = ..., reverse: bool = ...) -> List[Any]: ...
def get_format(format_type: str, lang: Optional[str] = ..., use_l10n: Optional[bool] = ...) -> str: ...
get_format_lazy: Any
def date_format(
value: Union[date, datetime, str], format: Optional[str] = ..., use_l10n: Optional[bool] = ...
) -> str: ...
def time_format(
value: Union[time, datetime, str], format: Optional[str] = ..., use_l10n: Optional[bool] = ...
) -> str: ...
def number_format(
value: Union[Decimal, float, str],
decimal_pos: Optional[int] = ...,
use_l10n: Optional[bool] = ...,
force_grouping: bool = ...,
) -> str: ...
def localize(value: Any, use_l10n: Optional[bool] = ...) -> Any: ...
def localize_input(
value: Optional[Union[datetime, Decimal, float, str]], default: Optional[str] = ...
) -> Optional[str]: ...
def sanitize_separators(value: Union[Decimal, int, str]) -> Union[Decimal, int, str]: ...
| 1,271 | Python | .py | 27 | 44.888889 | 115 | 0.653226 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,590 | http.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/http.pyi | from typing import Any, Iterable, List, Optional, Tuple, Union
ETAG_MATCH: Any
MONTHS: Any
RFC1123_DATE: Any
RFC850_DATE: Any
ASCTIME_DATE: Any
RFC3986_GENDELIMS: str
RFC3986_SUBDELIMS: str
FIELDS_MATCH: Any
def urlquote(url: str, safe: str = ...) -> str: ...
def urlquote_plus(url: str, safe: str = ...) -> str: ...
def urlunquote(quoted_url: str) -> str: ...
def urlunquote_plus(quoted_url: str) -> str: ...
def urlencode(query: Any, doseq: bool = ...) -> str: ...
def cookie_date(epoch_seconds: Optional[float] = ...) -> str: ...
def http_date(epoch_seconds: Optional[float] = ...) -> str: ...
def parse_http_date(date: str) -> int: ...
def parse_http_date_safe(date: str) -> Optional[int]: ...
def base36_to_int(s: str) -> int: ...
def int_to_base36(i: int) -> str: ...
def urlsafe_base64_encode(s: bytes) -> str: ...
def urlsafe_base64_decode(s: Union[bytes, str]) -> bytes: ...
def parse_etags(etag_str: str) -> List[str]: ...
def quote_etag(etag_str: str) -> str: ...
def is_same_domain(host: str, pattern: str) -> bool: ...
def url_has_allowed_host_and_scheme(
url: Optional[str], allowed_hosts: Optional[Union[str, Iterable[str]]], require_https: bool = ...
) -> bool: ...
def is_safe_url(
url: Optional[str], allowed_hosts: Optional[Union[str, Iterable[str]]], require_https: bool = ...
) -> bool: ...
def limited_parse_qsl(
qs: str, keep_blank_values: bool = ..., encoding: str = ..., errors: str = ..., fields_limit: Optional[int] = ...
) -> List[Tuple[str, str]]: ...
def escape_leading_slashes(url: str) -> str: ...
| 1,544 | Python | .py | 35 | 42.714286 | 117 | 0.650299 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,591 | timesince.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/timesince.pyi | from datetime import date
from typing import Any, Optional, Dict
TIME_STRINGS: Dict[str, str]
TIMESINCE_CHUNKS: Any
def timesince(
d: date, now: Optional[date] = ..., reversed: bool = ..., time_strings: Optional[Dict[str, str]] = ...
) -> str: ...
def timeuntil(d: date, now: Optional[date] = ..., time_strings: Optional[Dict[str, str]] = ...) -> str: ...
| 362 | Python | .py | 8 | 43.5 | 107 | 0.659091 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,592 | xmlutils.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/xmlutils.pyi | from typing import Dict, Optional
from xml.sax.saxutils import XMLGenerator
class UnserializableContentError(ValueError): ...
class SimplerXMLGenerator(XMLGenerator):
def addQuickElement(
self, name: str, contents: Optional[str] = ..., attrs: Optional[Dict[str, str]] = ...
) -> None: ...
def characters(self, content: str) -> None: ...
def startElement(self, name: str, attrs: Dict[str, str]) -> None: ...
| 433 | Python | .py | 9 | 44.222222 | 93 | 0.691943 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,593 | deprecation.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/deprecation.pyi | from typing import Any, Callable, Optional, Type
from django.http.request import HttpRequest
from django.http.response import HttpResponse
class RemovedInDjango30Warning(PendingDeprecationWarning): ...
class RemovedInDjango31Warning(PendingDeprecationWarning): ...
class RemovedInDjango40Warning(PendingDeprecationWarning): ...
class RemovedInNextVersionWarning(DeprecationWarning): ...
class warn_about_renamed_method:
class_name: str = ...
old_method_name: str = ...
new_method_name: str = ...
deprecation_warning: Type[DeprecationWarning] = ...
def __init__(
self, class_name: str, old_method_name: str, new_method_name: str, deprecation_warning: Type[DeprecationWarning]
) -> None: ...
def __call__(self, f: Callable) -> Callable: ...
class RenameMethodsBase(type):
renamed_methods: Any = ...
def __new__(cls, name: Any, bases: Any, attrs: Any): ...
class DeprecationInstanceCheck(type):
alternative: str
deprecation_warning: Type[Warning]
def __instancecheck__(self, instance: Any): ...
GetResponseCallable = Callable[[HttpRequest], HttpResponse]
class MiddlewareMixin:
get_response: Optional[GetResponseCallable] = ...
def __init__(self, get_response: Optional[GetResponseCallable] = ...) -> None: ...
def __call__(self, request: HttpRequest) -> HttpResponse: ...
| 1,345 | Python | .py | 28 | 44.357143 | 120 | 0.725954 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,594 | archive.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/archive.pyi | from typing import Any, Dict, Iterable, Sequence, Type
class ArchiveException(Exception): ...
class UnrecognizedArchiveFormat(ArchiveException): ...
def extract(path: str, to_path: str = ...) -> None: ...
class Archive:
def __init__(self, file: str) -> None: ...
def __enter__(self) -> Archive: ...
def __exit__(self, exc_type: None, exc_value: None, traceback: None) -> None: ...
def extract(self, to_path: str = ...) -> None: ...
def list(self) -> None: ...
def close(self) -> None: ...
class BaseArchive:
def split_leading_dir(self, path: str) -> Sequence[str]: ...
def has_leading_dir(self, paths: Iterable[str]) -> bool: ...
def extract(self, to_path: str) -> None: ...
def list(self, *args: Any, **kwargs: Any) -> None: ...
class TarArchive(BaseArchive):
def __init__(self, file: str) -> None: ...
def close(self) -> None: ...
class ZipArchive(BaseArchive):
def __init__(self, file: str) -> None: ...
def close(self) -> None: ...
extension_map: Dict[str, Type[BaseArchive]]
| 1,043 | Python | .py | 23 | 41.608696 | 85 | 0.618954 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,595 | safestring.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/safestring.pyi | from typing import TypeVar, overload, Callable, Any
_SD = TypeVar("_SD", bound="SafeData")
class SafeData:
def __html__(self: _SD) -> _SD: ...
class SafeText(str, SafeData):
@overload
def __add__(self, rhs: SafeText) -> SafeText: ...
@overload
def __add__(self, rhs: str) -> str: ...
@overload
def __iadd__(self, rhs: SafeText) -> SafeText: ...
@overload
def __iadd__(self, rhs: str) -> str: ...
SafeString = SafeText
_C = TypeVar("_C", bound=Callable)
@overload
def mark_safe(s: _SD) -> _SD: ...
@overload
def mark_safe(s: _C) -> _C: ...
@overload
def mark_safe(s: Any) -> SafeText: ...
| 629 | Python | .py | 21 | 27 | 54 | 0.605307 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,596 | timezone.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/timezone.pyi | import types
from contextlib import ContextDecorator
from datetime import date, datetime as datetime, time, timedelta as timedelta, tzinfo as tzinfo, timezone
from typing import Optional, Union, Type
from pytz import BaseTzInfo
_AnyTime = Union[time, datetime]
class UTC(tzinfo):
def utcoffset(self, dt: Optional[datetime]) -> Optional[timedelta]: ...
def tzname(self, dt: Optional[datetime]) -> str: ...
def dst(self, dt: Optional[datetime]) -> Optional[timedelta]: ...
class FixedOffset(tzinfo):
def __init__(self, offset: Optional[int] = ..., name: Optional[str] = ...) -> None: ...
def utcoffset(self, dt: Optional[datetime]) -> Optional[timedelta]: ...
def tzname(self, dt: Optional[datetime]) -> str: ...
def dst(self, dt: Optional[Union[datetime, timedelta]]) -> Optional[timedelta]: ...
class ReferenceLocalTimezone(tzinfo):
STDOFFSET: timedelta = ...
DSTOFFSET: timedelta = ...
DSTDIFF: timedelta = ...
def __init__(self) -> None: ...
def utcoffset(self, dt: Optional[datetime]) -> Optional[timedelta]: ...
def dst(self, dt: Optional[datetime]) -> Optional[timedelta]: ...
def tzname(self, dt: Optional[datetime]) -> str: ...
class LocalTimezone(ReferenceLocalTimezone):
def tzname(self, dt: Optional[datetime]) -> str: ...
utc: UTC = ...
def get_fixed_timezone(offset: Union[timedelta, int]) -> timezone: ...
def get_default_timezone() -> BaseTzInfo: ...
def get_default_timezone_name() -> str: ...
# Strictly speaking, it is possible to activate() a non-pytz timezone,
# in which case BaseTzInfo is incorrect. However, this is unlikely,
# so we use it anyway, to keep things ergonomic for most users.
def get_current_timezone() -> BaseTzInfo: ...
def get_current_timezone_name() -> str: ...
def activate(timezone: Union[tzinfo, str]) -> None: ...
def deactivate() -> None: ...
class override(ContextDecorator):
timezone: tzinfo = ...
old_timezone: Optional[tzinfo] = ...
def __init__(self, timezone: Optional[Union[str, tzinfo]]) -> None: ...
def __enter__(self) -> None: ...
def __exit__(
self, exc_type: Type[BaseException], exc_value: BaseException, traceback: types.TracebackType
) -> None: ...
def localtime(value: Optional[_AnyTime] = ..., timezone: Optional[tzinfo] = ...) -> datetime: ...
def localdate(value: Optional[_AnyTime] = ..., timezone: Optional[tzinfo] = ...) -> date: ...
def now() -> datetime: ...
def is_aware(value: _AnyTime) -> bool: ...
def is_naive(value: _AnyTime) -> bool: ...
def make_aware(value: _AnyTime, timezone: Optional[tzinfo] = ..., is_dst: Optional[bool] = ...) -> datetime: ...
def make_naive(value: _AnyTime, timezone: Optional[tzinfo] = ...) -> datetime: ...
| 2,714 | Python | .py | 51 | 50.196078 | 112 | 0.673077 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,597 | regex_helper.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/regex_helper.pyi | from typing import Any, Iterator, List, Optional, Tuple, Type, Union
ESCAPE_MAPPINGS: Any
class Choice(list): ...
class Group(list): ...
class NonCapture(list): ...
def normalize(pattern: str) -> List[Tuple[str, List[str]]]: ...
def next_char(input_iter: Any) -> None: ...
def walk_to_end(ch: str, input_iter: Iterator[Any]) -> None: ...
def get_quantifier(ch: str, input_iter: Iterator[Any]) -> Tuple[int, Optional[str]]: ...
def contains(source: Union[Group, NonCapture, str], inst: Type[Group]) -> bool: ...
def flatten_result(
source: Optional[Union[List[Union[Choice, Group, str]], Group, NonCapture]]
) -> Tuple[List[str], List[List[str]]]: ...
| 658 | Python | .py | 13 | 49.076923 | 88 | 0.685358 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,598 | ipv6.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/ipv6.pyi | from typing import Any
def clean_ipv6_address(ip_str: Any, unpack_ipv4: bool = ..., error_message: Any = ...): ...
def is_valid_ipv6_address(ip_str: str) -> bool: ...
| 168 | Python | .py | 3 | 54.666667 | 91 | 0.658537 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |
29,599 | module_loading.pyi | DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/utils/module_loading.pyi | from typing import Any
def import_string(dotted_path: str) -> Any: ...
def autodiscover_modules(*args: Any, **kwargs: Any) -> None: ...
def module_has_submodule(package: Any, module_name: str) -> bool: ...
def module_dir(module: Any) -> str: ...
| 247 | Python | .py | 5 | 48.2 | 69 | 0.680498 | DamnWidget/anaconda | 2,213 | 260 | 184 | GPL-3.0 | 9/5/2024, 5:14:06 PM (Europe/Amsterdam) |