Skip to content

Commit

Permalink
Fix a few more mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ndevenish committed Sep 5, 2023
1 parent ee8fe89 commit 745c877
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/zocalo/configuration/__init__.py
Expand Up @@ -311,7 +311,7 @@ def _read_configuration_yaml(configuration: str) -> dict:
f"Invalid YAML configuration: circular environment definitions for {environment_aliases}"
)

plugin_fields = {}
plugin_fields: dict[str, mm.fields.Field] = {}
for key in yaml_dict:
if key in ConfigSchema().fields:
continue
Expand Down
4 changes: 3 additions & 1 deletion src/zocalo/service/__init__.py
Expand Up @@ -29,7 +29,9 @@ def setup_logging(self):

# Always enable logging to console
try:
from dlstbx.util.colorstreamhandler import ColorStreamHandler
from dlstbx.util.colorstreamhandler import (

Check warning on line 32 in src/zocalo/service/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/zocalo/service/__init__.py#L32

Added line #L32 was not covered by tests
ColorStreamHandler, # type: ignore
)

self.console = ColorStreamHandler()
except ImportError:
Expand Down
1 change: 1 addition & 0 deletions src/zocalo/wrapper.py
Expand Up @@ -4,6 +4,7 @@
import threading
from typing import Any, Callable

import workflows.services.common_service
import workflows.util

import zocalo
Expand Down

0 comments on commit 745c877

Please sign in to comment.