Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-30655

add type annotations to ts_salobj

    XMLWordPrintable

    Details

    • 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).

        Attachments

          Activity

          Hide
          rowen Russell Owen added a comment - - edited

          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:

          Show
          rowen Russell Owen added a comment - - edited 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: https://github.com/lsst-ts/ts_salobj/pull/199 https://github.com/lsst-ts/ts_tcpip/pull/6
          Hide
          rowen Russell Owen added a comment - - edited

          Reviewed on github.

          Released ts_salobj v6.5.0 and ts_tcpip v0.3.1

          Show
          rowen Russell Owen added a comment - - edited Reviewed on github. Released ts_salobj v6.5.0 and ts_tcpip v0.3.1

            People

            Assignee:
            rowen Russell Owen
            Reporter:
            rowen Russell Owen
            Reviewers:
            Eric Coughlin
            Watchers:
            Eric Coughlin, Russell Owen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.