Skip to content

Commit

Permalink
fix mypy error in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
roflcoopter committed Mar 18, 2024
1 parent 0b86e60 commit b2b8091
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/templates/run_in_venv/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ runs:
run: |
PYTHON_PATH=$(which python3)
source venv/bin/activate
export PYTHONWARNINGS=ignore::yaml.YAMLLoadWarning
PYTHON_BROKEN_PATH=$(dirname $(which pip))
rm $PYTHON_BROKEN_PATH/python
ln -s $PYTHON_PATH $PYTHON_BROKEN_PATH/python
Expand Down
4 changes: 3 additions & 1 deletion viseron/components/edgetpu/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""EdgeTPU configuration specials."""
from __future__ import annotations

Check warning on line 2 in viseron/components/edgetpu/config.py

View check run for this annotation

Codecov / codecov/patch

viseron/components/edgetpu/config.py#L2

Added line #L2 was not covered by tests

import re
from typing import Any

Check warning on line 5 in viseron/components/edgetpu/config.py

View check run for this annotation

Codecov / codecov/patch

viseron/components/edgetpu/config.py#L5

Added line #L5 was not covered by tests

import voluptuous as vol

Expand Down Expand Up @@ -86,7 +88,7 @@ def __call__(self, value):

def get_label_schema(domain):
"""Return domain specific schema."""
schema = {
schema: dict[vol.Optional, Any] = {

Check warning on line 91 in viseron/components/edgetpu/config.py

View check run for this annotation

Codecov / codecov/patch

viseron/components/edgetpu/config.py#L91

Added line #L91 was not covered by tests
vol.Optional(
CONFIG_LABEL_PATH,
default=DEFAULT_LABEL_PATH_MAP[domain],
Expand Down

0 comments on commit b2b8091

Please sign in to comment.