Skip to content

Commit

Permalink
Obey the typechecker
Browse files Browse the repository at this point in the history
  • Loading branch information
jstvz committed May 7, 2024
1 parent 467c8eb commit 4576f16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cumulusci/core/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def _load_project_config(self, *args, **kwargs):
self.project_config = self.project_config_cls(
self.universal_config, *args, **kwargs
)
self.project_config._add_tasks_directory_to_python_path()
if self.project_config is not None:
self.project_config._add_tasks_directory_to_python_path()

def _load_keychain(self):
if self.keychain is not None:
Expand Down
5 changes: 3 additions & 2 deletions cumulusci/utils/xml/robot_xml.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import re
from typing import Callable, Dict, NamedTuple

from robot.api import ExecutionResult, ResultVisitor
from robot.api import ExecutionResult, ResultVisitor # type: ignore
from robot.result.model import TestCase

UNITS = {
Expand Down Expand Up @@ -53,7 +53,8 @@ def log_perf_summary_from_xml(
Supply a formatter that takes a PerfSummary triple if the default isn't a good fit:
f(test_name: str, metrics: Dict[str, float], test: robot.result.model.TestCase)"""
f(test_name: str, metrics: Dict[str, float], test: robot.result.model.TestCase)
"""
result = ExecutionResult(robot_xml)
pl = _perf_logger(logger_func, formatter_func)
next(pl) # start the generator
Expand Down

0 comments on commit 4576f16

Please sign in to comment.