Skip to content

kt/ktlib/ciq_helpers.py: Use Optional[str] instead of str | None type#68

Merged
roxanan1996 merged 1 commit into
mainlinefrom
{rnicolescu}_python9_fix
May 11, 2026
Merged

kt/ktlib/ciq_helpers.py: Use Optional[str] instead of str | None type#68
roxanan1996 merged 1 commit into
mainlinefrom
{rnicolescu}_python9_fix

Conversation

@roxanan1996
Copy link
Copy Markdown
Contributor

Compatible with python < 3.10

Compatible with python < 3.10

Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>
Copilot AI review requested due to automatic review settings May 11, 2026 12:56
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates a type annotation in kt/ktlib/ciq_helpers.py to avoid the Python 3.10-only X | None union syntax, improving compatibility with Python versions older than 3.10.

Changes:

  • Replaced str | None return annotation with Optional[str] for CIQ_find_matching_cve.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Collaborator

@bmastbergen bmastbergen left a comment

Choose a reason for hiding this comment

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

🥌

@roxanan1996 roxanan1996 merged commit 22ea57e into mainline May 11, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants