Skip to content

Fix SecretConverted when keyword uses Secret as type hint - #5521

Merged
pekkaklarck merged 1 commit into
robotframework:masterfrom
aaltat:libdoc_with_secret
Oct 19, 2025
Merged

pekkaklarck merged 1 commit into
robotframework:masterfrom
aaltat:libdoc_with_secret

Conversation

@aaltat

@aaltat aaltat commented Oct 18, 2025 •

Copy link
Copy Markdown
Contributor

And keyword doc is generated by using libdoc

Fixes #5520

@pekkaklarck

Copy link
Copy Markdown
Member

Looks good, but perhaps we should add a test with Secret to an existing suite (and a keyword using Secret to an existing library) instead of adding a separate suite. Probably atest/robot/libdoc/type_annotations.robot would be the best place.

The main reason to avoid an extra suite is that each Libdoc execution adds a bit to the overall execution time. Obviously a new test/keyword in an existing suite/library isn't 100% free either, but with them them the added time is negligible. Another reason to add a new test instead of a new suite is that most of the tests in the new suite are redundant.

@aaltat

aaltat commented Oct 19, 2025

Copy link
Copy Markdown
Contributor Author

Good point, I will change it.

@aaltat
aaltat force-pushed the libdoc_with_secret branch from 4148663 to 43939e2 Compare October 19, 2025 09:55
And keyword doc is generated my using libdoc

Fixes robotframework#5520
@aaltat
aaltat force-pushed the libdoc_with_secret branch from 43939e2 to b811b01 Compare October 19, 2025 10:14
@aaltat

aaltat commented Oct 19, 2025

Copy link
Copy Markdown
Contributor Author

I did tweak keywords order, so that it is easier to test with different Python versions.

@pekkaklarck
pekkaklarck merged commit 648c45f into robotframework:master Oct 19, 2025
@pekkaklarck

Copy link
Copy Markdown
Member

Thanks @aaltat!

@aaltat
aaltat deleted the libdoc_with_secret branch October 19, 2025 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Libdoc does not work with new Secret type

2 participants