Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make abi3audit python 3.8 compatible #47

Merged
merged 5 commits into from
Jan 30, 2023
Merged

Make abi3audit python 3.8 compatible #47

merged 5 commits into from
Jan 30, 2023

Conversation

ret2libc
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLAassistant commented Jan 27, 2023

CLA assistant check
All committers have signed the CLA.

@woodruffw
Copy link
Member

LGTM overall! I just cut 2023.01.27 for abi3info, so bumping to that here should resolve the compatibility problem on 3.8.

@ret2libc
Copy link
Contributor Author

Used newer version of abi3info and also used future annotations instead of Dict/Set/etc.

class AuditResult:
so: SharedObject
baseline: PyVersion
computed: PyVersion
non_abi3_symbols: set[Symbol]
future_abi3_objects: set[Function | Data]
future_abi3_objects: set[Union[Function, Data]]
Copy link
Member

Choose a reason for hiding this comment

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

FWIW the | syntax for Union should also work in deferred annotations with __future__ (it just doesn't work work in type aliases because those aren't deferred).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see

abi3audit/_audit.py Outdated Show resolved Hide resolved
Copy link
Member

@woodruffw woodruffw left a comment

Choose a reason for hiding this comment

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

LGTM!

abi3audit/_audit.py Outdated Show resolved Hide resolved
@woodruffw woodruffw merged commit 6f8fbd5 into main Jan 30, 2023
@woodruffw woodruffw deleted the py3.8-compatible branch January 30, 2023 16:27
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