File: util.pyi

package info (click to toggle)
typeshed 0.0~git20221107.4f381af-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,036 kB
  • sloc: python: 3,216; sh: 62; makefile: 13
file content (103 lines) | stat: -rw-r--r-- 3,106 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
from typing import Any

from . import visitors

join_condition: Any

def find_join_source(clauses, join_to): ...
def find_left_clause_that_matches_given(clauses, join_from): ...
def find_left_clause_to_join_from(clauses, join_to, onclause): ...
def visit_binary_product(fn, expr) -> None: ...
def find_tables(
    clause,
    check_columns: bool = ...,
    include_aliases: bool = ...,
    include_joins: bool = ...,
    include_selects: bool = ...,
    include_crud: bool = ...,
): ...
def unwrap_order_by(clause): ...
def unwrap_label_reference(element): ...
def expand_column_list_from_order_by(collist, order_by): ...
def clause_is_present(clause, search): ...
def tables_from_leftmost(clause) -> None: ...
def surface_selectables(clause) -> None: ...
def surface_selectables_only(clause) -> None: ...
def extract_first_column_annotation(column, annotation_name): ...
def selectables_overlap(left, right): ...
def bind_values(clause): ...

class _repr_base:
    max_chars: Any
    def trunc(self, value): ...

class _repr_row(_repr_base):
    row: Any
    max_chars: Any
    def __init__(self, row, max_chars: int = ...) -> None: ...

class _repr_params(_repr_base):
    params: Any
    ismulti: Any
    batches: Any
    max_chars: Any
    def __init__(self, params, batches, max_chars: int = ..., ismulti: Any | None = ...) -> None: ...

def adapt_criterion_to_null(crit, nulls): ...
def splice_joins(left, right, stop_on: Any | None = ...): ...
def reduce_columns(columns, *clauses, **kw): ...
def criterion_as_pairs(
    expression,
    consider_as_foreign_keys: Any | None = ...,
    consider_as_referenced_keys: Any | None = ...,
    any_operator: bool = ...,
): ...

class ClauseAdapter(visitors.ReplacingExternalTraversal):
    __traverse_options__: Any
    selectable: Any
    include_fn: Any
    exclude_fn: Any
    equivalents: Any
    adapt_on_names: Any
    adapt_from_selectables: Any
    def __init__(
        self,
        selectable,
        equivalents: Any | None = ...,
        include_fn: Any | None = ...,
        exclude_fn: Any | None = ...,
        adapt_on_names: bool = ...,
        anonymize_labels: bool = ...,
        adapt_from_selectables: Any | None = ...,
    ) -> None: ...
    def replace(self, col, _include_singleton_constants: bool = ...): ...

class ColumnAdapter(ClauseAdapter):
    columns: Any
    adapt_required: Any
    allow_label_resolve: Any
    def __init__(
        self,
        selectable,
        equivalents: Any | None = ...,
        adapt_required: bool = ...,
        include_fn: Any | None = ...,
        exclude_fn: Any | None = ...,
        adapt_on_names: bool = ...,
        allow_label_resolve: bool = ...,
        anonymize_labels: bool = ...,
        adapt_from_selectables: Any | None = ...,
    ) -> None: ...

    class _IncludeExcludeMapping:
        parent: Any
        columns: Any
        def __init__(self, parent, columns) -> None: ...
        def __getitem__(self, key): ...

    def wrap(self, adapter): ...
    def traverse(self, obj): ...
    adapt_clause: Any
    adapt_list: Any
    def adapt_check_present(self, col): ...