Mercurial > code > home > repos > light9
changeset 2199:ffde209f05c4
typedValue imports
author | drewp@bigasterisk.com |
---|---|
date | Mon, 22 May 2023 00:59:18 -0700 |
parents | ae38d21e6f6b |
children | e5fceabc6909 |
files | light9/collector/collector.py light9/effect/sequencer/note.py light9/effect/simple_outputs.py light9/newtypes.py |
diffstat | 4 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/collector/collector.py Mon May 22 00:56:19 2023 -0700 +++ b/light9/collector/collector.py Mon May 22 00:59:18 2023 -0700 @@ -1,6 +1,7 @@ import logging import time from typing import Dict, List, Set, Tuple, cast +from light9.typedgraph import typedValue from rdfdb.syncedgraph.syncedgraph import SyncedGraph from rdflib import URIRef @@ -11,7 +12,7 @@ from light9.effect.settings import DeviceSettings from light9.namespaces import L9, RDF from light9.newtypes import (ClientSessionType, ClientType, DeviceAttr, DeviceClass, DeviceSetting, DeviceUri, DmxIndex, DmxMessageIndex, OutputAttr, - OutputRange, OutputUri, OutputValue, UnixTime, VTUnion, typedValue) + OutputRange, OutputUri, OutputValue, UnixTime, VTUnion) log = logging.getLogger('collector')
--- a/light9/effect/sequencer/note.py Mon May 22 00:56:19 2023 -0700 +++ b/light9/effect/sequencer/note.py Mon May 22 00:59:18 2023 -0700 @@ -4,13 +4,14 @@ from dataclasses import dataclass from decimal import Decimal from typing import Any, Dict, List, Optional, Tuple, Union, cast +from light9.typedgraph import typedValue from rdfdb.syncedgraph.syncedgraph import SyncedGraph from rdflib import Literal from light9.effect.settings import BareEffectSettings from light9.namespaces import L9 -from light9.newtypes import (Curve, EffectAttr, EffectClass, NoteUri, VTUnion, typedValue) +from light9.newtypes import (Curve, EffectAttr, EffectClass, NoteUri, VTUnion) log = logging.getLogger('sequencer')
--- a/light9/effect/simple_outputs.py Mon May 22 00:56:19 2023 -0700 +++ b/light9/effect/simple_outputs.py Mon May 22 00:59:18 2023 -0700 @@ -1,6 +1,7 @@ import logging import traceback from typing import Any, Dict, List, Tuple +from light9.typedgraph import typedValue from rdflib import URIRef
--- a/light9/newtypes.py Mon May 22 00:56:19 2023 -0700 +++ b/light9/newtypes.py Mon May 22 00:59:18 2023 -0700 @@ -1,8 +1,6 @@ -import decimal -from typing import NewType, Tuple, Type, TypeVar, Union, cast +from typing import NewType, Tuple, TypeVar, Union from rdflib import URIRef -from rdflib.term import Node ClientType = NewType('ClientType', str) ClientSessionType = NewType('ClientSessionType', str)