POGO 9.10.4 and tango controls version 10.1.1 duplicates attribute label in generated Python code

Hi!

Yes, I see that is a problem. Sorry.

If I create an attribute “foo” with label “FOO_LABEL” I get this (using Pogo 9.10.4):

    @attribute(
        label='foo',
        dtype='DevDouble',
        label="FOO_LABEL",
    )
    def foo(self):
        # PROTECTED REGION ID(PyLabel.foo_read) ENABLED START #
        """Return the foo attribute."""
        return self._foo
        # PROTECTED REGION END #    //  PyLabel.foo_read

It looks like the issue has been reported on the repo: Generated Python code error: keyword argument repeated: label (#186) · Issues · tango-controls / pogo · GitLab.

Hopefully, it can be fixed soon.

Regards,
/Anton