Skip to content

jira/client.py: Map IssueLinkType array to string array#1876

Open
ssamsel-rtx wants to merge 1 commit intopycontribs:mainfrom
ssamsel-rtx:fix_issue_link_warnings
Open

jira/client.py: Map IssueLinkType array to string array#1876
ssamsel-rtx wants to merge 1 commit intopycontribs:mainfrom
ssamsel-rtx:fix_issue_link_warnings

Conversation

@ssamsel-rtx
Copy link

Equality check between IssueLinkType and string always returns false. Function decorator casts IssueLinkType parameters to string, so a warning is always logged. This fixes that issue.

Closes: #1875

Equality check between IssueLinkType and string always returns false.
Function decorator casts IssueLinkType parameters to string, so a
warning is always logged. This fixes that issue.

Closes: pycontribs#1875
Signed-off-by: Shymon Samsel <[email protected]>
Copy link
Contributor

@adehad adehad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thanks for this. I want to have a think of a test case to make sure we don't cause regressions on this moving forward, so will have a think before merging

@KiloFoxtrotPapa
Copy link

This fix won't work. You'll break the for loop later when it tries to access .outward and .inward
Fix should probably go on the if line?

        if type not in [lt.name for lt in issue_link_types]:

@kohtala
Copy link

kohtala commented Jan 16, 2026

An IssueLinkType as parameter is supposed to be working according to the parameter typing, but it won't work with this patch. I created another PR #2406.

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.

Erroneous Warnings When Creating Issue Links

4 participants