-m
This commit is contained in:
parent
b9b8e3a5f1
commit
6c8a2526d9
40 changed files with 219 additions and 141 deletions
|
@ -5,7 +5,7 @@ import json
|
|||
import logging
|
||||
import os
|
||||
from pathlib import Path
|
||||
from typing import Dict, List, Optional
|
||||
from typing import TYPE_CHECKING, Dict, List, Optional
|
||||
|
||||
import grpc
|
||||
|
||||
|
@ -22,6 +22,9 @@ from core.gui.graph.shapeutils import ShapeType
|
|||
from core.gui.interface import InterfaceManager
|
||||
from core.gui.nodeutils import NodeDraw, NodeUtils
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from core.gui.app import Application
|
||||
|
||||
GUI_SOURCE = "gui"
|
||||
OBSERVERS = {
|
||||
"processes": "ps",
|
||||
|
@ -50,7 +53,7 @@ class Observer:
|
|||
|
||||
|
||||
class CoreClient:
|
||||
def __init__(self, app):
|
||||
def __init__(self, app: "Application"):
|
||||
"""
|
||||
Create a CoreGrpc instance
|
||||
"""
|
||||
|
@ -137,7 +140,7 @@ class CoreClient:
|
|||
|
||||
def handle_events(self, event: core_pb2.Event):
|
||||
if event.session_id != self.session_id:
|
||||
logging.warn(
|
||||
logging.warning(
|
||||
"ignoring event session(%s) current(%s)",
|
||||
event.session_id,
|
||||
self.session_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue