Skip to content

Commit

Permalink
install numpy-stubs for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm committed Jun 3, 2020
1 parent 40f9d48 commit 026464a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ repos:
rev: master
hooks:
- id: mypy
additional_dependencies: ['git+https://github.com/numpy/numpy-stubs']
- repo: https://github.com/PyCQA/flake8
rev: master
hooks:
Expand Down
6 changes: 3 additions & 3 deletions rednose/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

class KalmanFilter:
name = "<name>"
initial_x = None
initial_P_diag = None
Q = None
initial_x = np.zeros((0, 0))
initial_P_diag = np.zeros((0, 0))
Q = np.zeros((0, 0))
obs_noise: Dict[int, Any] = {}

def __init__(self, generated_dir):
Expand Down

0 comments on commit 026464a

Please sign in to comment.