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

Modernize type annotations in ts_utils and simplify ImageNameServiceClient

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: ts_middleware
    • Labels:
    • Story Points:
      1
    • Sprint:
      TSSW Sprint - Jan 02 - Jan 16, TSSW Sprint - Jan 16 - Jan 30
    • Team:
      Telescope and Site
    • Urgent?:
      No

      Description

      Modernize type annotations to use | instead of typing.Optional and typing.Union, etc.

      I also tried modernize the doc build to use documenteer[guide] in ts_utils. This is an experiment to try out the modern documenteer that can generate type information for parameters (but not yet return values) from type annotations. That is on tag "documenteer-guide" but we decided not to include it in this ticket.

        Attachments

          Issue Links

            Activity

            rowen Russell Owen created issue -
            rowen Russell Owen made changes -
            Field Original Value New Value
            Description Modernize the doc build to use documenteer[guide] in ts_utils. This is an experiment to try out the modern documenteer that can generate type information for parameters (but not yet return values) from type annotations.

            and modernize type annotations to use | instead of typing.Optional and typing.Union, etc.
            Modernize the doc build to use documenteer[guide] in ts_utils. This is an experiment to try out the modern documenteer that can generate type information for parameters (but not yet return values) from type annotations.

            and modernize type annotations to use | instead of typing.Optional and typing.Union, etc.

            This is primarily intended as a proof of concept and to learn how to use documenteer[guide].
            rowen Russell Owen made changes -
            Epic Link DM-32120 [ 770392 ]
            Sprint TSSW Sprint - Jan 02 - Jan 16 [ 1211 ]
            rowen Russell Owen made changes -
            Status To Do [ 10001 ] In Progress [ 3 ]
            rowen Russell Owen made changes -
            Reviewers Eric Coughlin [ ecoughlin ]
            Status In Progress [ 3 ] In Review [ 10004 ]
            rowen Russell Owen made changes -
            Link This issue relates to DM-37529 [ DM-37529 ]
            ecoughlin Eric Coughlin made changes -
            Status In Review [ 10004 ] Reviewed [ 10101 ]
            wvreeven Wouter van Reeven made changes -
            Sprint TSSW Sprint - Jan 02 - Jan 16 [ 1211 ] TSSW Sprint - Jan 02 - Jan 16, TSSW Sprint - Jan 16 - Jan 30 [ 1211, 1212 ]
            rowen Russell Owen made changes -
            Summary Modernize doc build and type annotations in ts_utils Modernize type annotations in ts_utils and simplify ImageNameServiceClient
            rowen Russell Owen made changes -
            Description Modernize the doc build to use documenteer[guide] in ts_utils. This is an experiment to try out the modern documenteer that can generate type information for parameters (but not yet return values) from type annotations.

            and modernize type annotations to use | instead of typing.Optional and typing.Union, etc.

            This is primarily intended as a proof of concept and to learn how to use documenteer[guide].
            Modernize type annotations to use | instead of typing.Optional and typing.Union, etc.

            I also tried modernize the doc build to use documenteer[guide] in ts_utils. This is an experiment to try out the modern documenteer that can generate type information for parameters (but not yet return values) from type annotations. That is on tag "documenteer-guide" but we decided not to include it in this ticket.
            rowen Russell Owen made changes -
            Resolution Done [ 10000 ]
            Status Reviewed [ 10101 ] Done [ 10002 ]

              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.