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

refactor: Adopt the type-lens package. #117

Merged
merged 2 commits into from
Sep 30, 2024
Merged

refactor: Adopt the type-lens package. #117

merged 2 commits into from
Sep 30, 2024

Conversation

DanCardin
Copy link
Owner

@DanCardin DanCardin commented May 15, 2024

Not going to work in the short term. Some of the required functionality isn't merged yet, and none of it is in a released version.

Also, type-lens only supports python 3.9+, which is unfortunate. Although https://pypistats.org/packages/cappa maybe implies 3.8 is currently only installed when CI runs.

Also, all the variable names are currently "annotation", but probably ought to be type_view, so annotation.annotation doesn't look so stupid

Externalize all the various little version-specific python typing handling and various typing related utilities into the type-lens package. Much of the type-lens API we use came from cappa's impls, but rebased on the much more comprehensive TypeView base provided by it.

@DanCardin DanCardin force-pushed the dc/type-lens branch 2 times, most recently from 547c740 to 2e356b9 Compare September 18, 2024 13:37
@DanCardin DanCardin force-pushed the dc/type-lens branch 2 times, most recently from 79317e9 to 4a03735 Compare September 28, 2024 13:34
@DanCardin DanCardin marked this pull request as ready for review September 30, 2024 00:45
@DanCardin DanCardin merged commit cde14de into main Sep 30, 2024
8 checks passed
@DanCardin DanCardin deleted the dc/type-lens branch September 30, 2024 00:48
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