Skip to content

Commit

Permalink
added return type annotation to init method
Browse files Browse the repository at this point in the history
This has to be done, because ubuntus mypy is too old (still v0.560).
See also python/mypy#5677.
  • Loading branch information
marph91 committed Mar 15, 2020
1 parent 8392ba9 commit 63a4f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/python_tools/cnn_onnx/parse_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ProcessingElement:
"""Represents a processing element (PE) in the hardware design.
Each PE has to contain exactly one convolution with optional
activation function and maximum pooling."""
def __init__(self, param: dict):
def __init__(self, param: dict) -> None:
self.relu = 0
self.leaky_relu = 0
self.pool_param = (0, 0)
Expand Down

0 comments on commit 63a4f06

Please sign in to comment.