Skip to content

Commit 634cf25

Browse files
committed
test
1 parent d7e13b4 commit 634cf25

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/opengeodeweb_viewer/vtk_protocol.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from vtk.web import protocols as vtk_protocols
88

99
# Local application imports
10-
from opengeodeweb_microservice.database.connection import init_database, get_session
10+
from opengeodeweb_microservice.database.connection import get_session
1111
from opengeodeweb_microservice.database.data import Data
1212

1313

@@ -22,11 +22,11 @@ def __init__(self) -> None:
2222
def get_data_base(
2323
self,
2424
) -> dict[
25-
str, dict[str, Union[vtk.vtkAlgorithm, vtk.vtkActor, vtk.vtkMapper, dict, str]]
25+
str, dict[str, Union[object, str]]
2626
]:
2727
return self.getSharedObject("db")
2828

29-
def get_data(self, data_id: str) -> dict[str, str]:
29+
def get_data(self, data_id: str) -> dict[str, Optional[Union[str, list[str]]]]:
3030
if Data is None:
3131
raise Exception("Data model not available")
3232

@@ -68,7 +68,7 @@ def get_renderer(self) -> vtk.vtkRenderer:
6868

6969
def get_object(
7070
self, id: str
71-
) -> dict[str, Union[vtk.vtkAlgorithm, vtk.vtkActor, vtk.vtkMapper, dict, str]]:
71+
) -> dict[str, Union[object, str]]:
7272
return self.get_data_base()[id]
7373

7474
def get_protocol(self, name: str) -> vtk_protocols.vtkWebProtocol:
@@ -91,7 +91,7 @@ def register_object(
9191
filter: Optional[vtk.vtkAlgorithm],
9292
actor: vtk.vtkActor,
9393
mapper: vtk.vtkMapper,
94-
textures: dict,
94+
textures: dict[str, Union[str, int, float]],
9595
) -> None:
9696
self.get_data_base()[id] = {
9797
"reader": reader,

0 commit comments

Comments
 (0)