Library structure

This commit is contained in:
2026-07-28 18:12:10 +02:00
parent e5325fbd96
commit 3132d85bdd
6 changed files with 16 additions and 15 deletions
@@ -1,7 +1,8 @@
import plugin
import sys
from typing import Any, Generic, TypeVar, Type, Optional
import general
from typing import Generic, TypeVar, Type
from . import general
from . import plugin
T = TypeVar("T", bound=general.PulseWire)
TT = TypeVar("TT", bound=general.PulseWire)
@@ -1,5 +1,5 @@
import struct
from decimal import Decimal
import struct
import typing
T = typing.TypeVar("T")
@@ -1,8 +1,9 @@
from pwp import pwp, pwp_enum, PulseWire
from adv_types import *
import units
from typing import TypeAlias
from .pwp import pwp, pwp_enum, PulseWire
from .adv_types import *
from . import units
@pwp_enum
class MarketTrend(PulseWire):
class Bullish: pass
+4 -4
View File
@@ -1,9 +1,9 @@
from pwp import pwp, pwp_enum, PulseWire
from adv_types import *
import units
import general
from typing import Optional, TypeAlias
from .pwp import pwp, pwp_enum, PulseWire
from .adv_types import *
from . import units, general
@pwp
class StrategySignal(PulseWire):
symbol: str
+1 -2
View File
@@ -1,7 +1,6 @@
import struct
import typing
import types
from typing import (
Protocol,
TypeVar,
@@ -10,7 +9,7 @@ from typing import (
get_args,
)
from adv_types import *
from .adv_types import *
class PulseWire(Protocol):
+2 -2
View File
@@ -1,5 +1,5 @@
from pwp import pwp, pwp_enum, PulseWire
from adv_types import *
from .pwp import pwp, pwp_enum, PulseWire
from .adv_types import *
@pwp
class Symbol(PulseWire):