mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 16:50:02 +02:00
fixing GenericComponent exports
This commit is contained in:
parent
18c71dd7f6
commit
717939e902
@ -9,7 +9,7 @@ import { StringComponent } from './StringComponent';
|
|||||||
import { ListComponent } from './ListComponent';
|
import { ListComponent } from './ListComponent';
|
||||||
import { DataServiceComponent, DataServiceJSON } from './DataServiceComponent';
|
import { DataServiceComponent, DataServiceJSON } from './DataServiceComponent';
|
||||||
|
|
||||||
export type AttributeType =
|
type AttributeType =
|
||||||
| 'str'
|
| 'str'
|
||||||
| 'bool'
|
| 'bool'
|
||||||
| 'float'
|
| 'float'
|
||||||
@ -21,7 +21,7 @@ export type AttributeType =
|
|||||||
| 'NumberSlider';
|
| 'NumberSlider';
|
||||||
|
|
||||||
type ValueType = boolean | string | number | object;
|
type ValueType = boolean | string | number | object;
|
||||||
interface Attribute {
|
export interface Attribute {
|
||||||
type: AttributeType;
|
type: AttributeType;
|
||||||
value?: ValueType | ValueType[];
|
value?: ValueType | ValueType[];
|
||||||
readonly: boolean;
|
readonly: boolean;
|
||||||
|
@ -91,14 +91,11 @@ class Server:
|
|||||||
|
|
||||||
logger.info(f"Finished server process [{process_id}]")
|
logger.info(f"Finished server process [{process_id}]")
|
||||||
|
|
||||||
def _start_autostart_tasks(self) -> None:
|
|
||||||
self._service._start_autostart_tasks()
|
|
||||||
|
|
||||||
async def startup(self) -> None: # noqa: C901
|
async def startup(self) -> None: # noqa: C901
|
||||||
self._loop = asyncio.get_running_loop()
|
self._loop = asyncio.get_running_loop()
|
||||||
self._loop.set_exception_handler(self.custom_exception_handler)
|
self._loop.set_exception_handler(self.custom_exception_handler)
|
||||||
self.install_signal_handlers()
|
self.install_signal_handlers()
|
||||||
self._start_autostart_tasks()
|
self._service._start_autostart_tasks()
|
||||||
|
|
||||||
if self._enable_rpc:
|
if self._enable_rpc:
|
||||||
self.executor = ThreadPoolExecutor()
|
self.executor = ThreadPoolExecutor()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user