m-lundberg / simple-pid

A simple and easy to use PID controller in Python
MIT License
767 stars 209 forks source link

PID setpoint not in PID.pyi #35

Closed jamesbraza closed 3 years ago

jamesbraza commented 3 years ago

The public attribute setpoint in simple_pid.PID.PID is not exposed in the .pyi.

When scanning with mypy, it throws an error:

error: "PID" has no attribute "setpoint"  [attr-defined]

A few ideas:


Versions

Python==3.8.5
simple-pid==1.0.0
mypy==0.812
m-lundberg commented 3 years ago

I was not aware of this. Thanks for letting me know!

I have included setpoint and all the other public member variables in the typing stub and released it in version 1.0.1.