Skip to content

Commit 297f13e

Browse files
committed
fix bug from new annotation style
1 parent e7ae18e commit 297f13e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assemblyline_core/server_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import sys
1313
import io
1414
import os
15-
from typing import cast, Callable, TYPE_CHECKING
15+
from typing import Callable, TYPE_CHECKING
1616

1717
from assemblyline.remote.datatypes import get_client
1818
from assemblyline.remote.datatypes.hash import Hash
@@ -208,7 +208,7 @@ def __init__(self, component_name: str, logger: logging.Logger = None,
208208
)
209209

210210
# Create a cached service data object, and access to the service status
211-
self.service_info = cast(dict[str, Service], forge.CachedObject(self._get_services))
211+
self.service_info: dict[str, Service] = forge.CachedObject(self._get_services)
212212
self._service_stage_hash = get_service_stage_hash(self.redis)
213213

214214
def _get_services(self):

0 commit comments

Comments
 (0)