Skip to content

chore: replaced typing.Union with Union type - #68

Merged
petruki merged 1 commit into
masterfrom
staging
Oct 31, 2026
Merged

petruki merged 1 commit into
masterfrom
staging

Conversation

@petruki

@petruki petruki commented Oct 31, 2026

Copy link
Copy Markdown
Member

This pull request introduces a minor type annotation update and adds a new test to improve test coverage for handling multiple keys in the Switcher stub. The most important changes are:

Type Annotation Improvements:

  • Updated the type hint for the input parameter in SwitcherData.check_payload to use the modern union syntax (str | dict) instead of Union[str, dict] for improved readability and consistency with Python 3.10+ standards. [1] [2]

Test Coverage Enhancements:

  • Added test_switcher_stub_multiple_keys to tests/test_switcher_stub.py to verify that the Switcher stub correctly handles multiple keys with independent bypass values, including overriding assumptions.

@petruki petruki added this to the v1.2.2 milestone Oct 31, 2026
@petruki petruki self-assigned this Oct 31, 2026
@sonarqubecloud

Copy link
Copy Markdown

@petruki
petruki merged commit c86e89b into master Oct 31, 2026
15 checks passed
@petruki
petruki deleted the staging branch October 31, 2026 00:16
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.

1 participant