Skip to content

Commit

Permalink
Add type information for public instance members to typing stub
Browse files Browse the repository at this point in the history
  • Loading branch information
m-lundberg committed Apr 11, 2021
1 parent df4207a commit 9025e39
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions simple_pid/PID.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ def _clamp(value: Optional[float], limits: _Limits) -> Optional[float]: ...
_current_time: Callable[[], float]

class PID(object):
Kp: float
Ki: float
Kd: float
setpoint: float
sample_time: Optional[float]
output_limits: _Limits
proportional_on_measurement: bool
error_map: Optional[Callable[[float], float]]
def __init__(
self,
Kp: float = ...,
Expand Down

0 comments on commit 9025e39

Please sign in to comment.