Skip to content

Conversation

@michaeldiamant
Copy link
Contributor

Optionally refactors ABIRoundtrip to remove branching during construction.

The PR stems from my attempt to understand why #322 requires annotation_type. As a by-product of the investigation, I realized ABIRoundtrip branches because unlike all other usages, tests/integration/abi_roundtrip_test.py supplies GenericAlias instead of an equivalent instance.

From my review, I felt removing the branching produces a better tradeoff. Though I present the PR optionally in case I've miss understood usage patterns.

Copy link
Contributor

@tzaffi tzaffi left a comment

Choose a reason for hiding this comment

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

Great improvement!

@tzaffi tzaffi merged commit c721c06 into blackbox-abi May 18, 2022
@tzaffi tzaffi deleted the blackbox-abi_always_annotations branch May 18, 2022 15:35
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.

3 participants