summaryrefslogtreecommitdiff
path: root/test/ext/mypy/plain_files/selectables.py
blob: 7d31124587f0081f8139009deb768c501e3174a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from sqlalchemy import column
from sqlalchemy import table


def test_col_accessors() -> None:
    t = table("t", column("a"), column("b"), column("c"))

    t.c.a
    t.c["a"]

    t.c[2]
    t.c[0, 1]
    t.c[0, 1, "b", "c"]
    t.c[(0, 1, "b", "c")]

    t.c[:-1]
    t.c[0:2]