Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
avaldebe committed Dec 8, 2022
1 parent 43cae17 commit 5065e81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ repos:
rev: v0.991
hooks:
- id: mypy
args: [--ignore-missing-imports, --no-warn-unused-ignores]
2 changes: 1 addition & 1 deletion tests/core/reader/test_SensorReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def test_reader(reader: SensorReader, mock_serial):

# check data was read
assert len(obs) == 1
assert obs[0].pm10 == 11822
assert obs[0].pm10 == 11822 # type:ignore

# check sleep happened
assert mock_serial.stubs["sleep"].called
Expand Down

0 comments on commit 5065e81

Please sign in to comment.