This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import contextlib | |
import random | |
import traceback | |
from collections import defaultdict | |
from collections.abc import AsyncIterator, Callable, Hashable | |
from types import TracebackType | |
from typing import ( | |
TYPE_CHECKING, | |
Generic, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import enum | |
from typing import Any, Optional, Annotated | |
from sqlalchemy import select | |
from sqlalchemy.ext.asyncio import AsyncSession | |
from sqlalchemy.orm import InstrumentedAttribute, DeclarativeMeta | |
from sqlalchemy.sql import Select | |
from gql.modules.users._fields import UserOrder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sqlalchemy import Table, Integer, Column, ForeignKey, String, create_engine, select, func | |
from sqlalchemy.orm import declarative_base, relationship, sessionmaker, column_property, undefer | |
Base = declarative_base() | |
engine = create_engine("sqlite://", echo=True) | |
Session = sessionmaker(bind=engine, future=True) | |
article_tags = Table( | |
"article__tags", | |
Base.metadata, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dataclasses | |
import typing | |
from types import SimpleNamespace | |
from typing import Optional, List | |
import strawberry | |
class Op(SimpleNamespace): | |
eq = "eq" |