Skip to content

Commit 6a490af

Browse files
committed
Fix a few more mypy errors
1 parent 11834d0 commit 6a490af

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/zocalo/configuration/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def _read_configuration_yaml(configuration: str) -> dict:
311311
f"Invalid YAML configuration: circular environment definitions for {environment_aliases}"
312312
)
313313

314-
plugin_fields = {}
314+
plugin_fields: dict[str, mm.fields.Field] = {}
315315
for key in yaml_dict:
316316
if key in ConfigSchema().fields:
317317
continue

src/zocalo/service/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ def setup_logging(self):
2929

3030
# Always enable logging to console
3131
try:
32-
from dlstbx.util.colorstreamhandler import ColorStreamHandler
32+
from dlstbx.util.colorstreamhandler import (
33+
ColorStreamHandler, # type: ignore
34+
)
3335

3436
self.console = ColorStreamHandler()
3537
except ImportError:

src/zocalo/wrapper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import threading
55
from typing import Any, Callable
66

7+
import workflows.services.common_service
78
import workflows.util
89

910
import zocalo

0 commit comments

Comments
 (0)