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

add type annotations to ts_salobj

    XMLWordPrintable

Details

    • 3
    • TSSW Sprint - Jun 21 - Jul 05
    • Telescope and Site
    • 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

          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:

          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
          rowen Russell Owen added a comment - - edited

          Reviewed on github.

          Released ts_salobj v6.5.0 and ts_tcpip v0.3.1

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Jenkins

                No builds found.