Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ts_middleware
-
Story Points:3
-
Epic Link:
-
Sprint:TSSW Sprint - Jun 21 - Jul 05
-
Team:Telescope and Site
-
Urgent?:No
Description
Add type annotations to ts_salobj and test them with mypy.
Configure pytest to run mypy on ts_salobj and also on ts_tcpip (which already has type annotations).
Note: mypy cannot handle the topic attributes added to Controller, Remote, BaseCsc, etc. (e.g. evt_summaryState, cmd_enable, tel_whatever). So I chose not to annotate the ts_salobj unit test files that tested the Controller, Remote and CSC classes because I would have to to disable checking of too many lines, making the code hard to read.
Pull request: