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 typing | |
import attrs | |
from attrs import define, NOTHING, asdict | |
from typing import TypeVar, Any | |
from src.tools.utils import to_camel_case | |
from qtpy import QtCore as qtc | |
from src.tools.exceptions import ModelError | |
T = TypeVar("GenericType") | |
RoleDefined = TypeVar("RokeDefined") |
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 uuid | |
from dataclasses import dataclass, asdict, field, is_dataclass | |
import json | |
from qtpy import QtCore as qtc, QtWebSockets as qtws, QtNetwork as qtn | |
from typing import NamedTuple, Optional, NewType, Union, Any | |
from tzvui.network.client import HOST, PORT | |
from tzvui.qthacks import slot |
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 functools import partial | |
from timeit import timeit | |
from PySide6.QtCore import QCoreApplication, QObject, Slot | |
from qtgql import slot | |
def manual(): | |
class ManualTyping(QObject): | |
@Slot(str, int, result="int") |
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
// every time this file is edited the loader will refresh it. | |
import QtQuick | |
import QtQuick.Controls | |
import QtQuick.Controls.Material | |
import DogModule | |
Pane { | |
anchors.fill: parent; | |
Rectangle{ | |
width:234; |
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 __future__ import annotations | |
import contextlib | |
import glob | |
import os | |
import subprocess | |
from functools import cached_property | |
from pathlib import Path | |
from conan import ConanFile |
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 __future__ import annotations | |
import subprocess | |
from pathlib import Path | |
import pytest | |
from tests.conftest import IS_WINDOWS | |
exe_suffix = "exe" if IS_WINDOWS else "so" |
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 __future__ import annotations | |
import json | |
import re | |
import subprocess | |
from pathlib import Path | |
import pytest | |
from typing_extensions import TypedDict |
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
template<typename T> | |
struct SubscribeAbleField; | |
template<typename T> | |
struct InSyncValue{ | |
std::function<void(const T&)> on_changed; | |
void notify(const SubscribeAbleField<T>* sub){ | |
on_changed(sub->value); | |
} | |
}; |
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 __future__ import annotations | |
import contextlib | |
import dataclasses | |
import enum | |
from importlib import import_module | |
from typing import TYPE_CHECKING, Generic, TypeVar, get_type_hints | |
from django.db import models | |
from django.utils.translation import gettext_lazy as _ |
OlderNewer