Skip to content

Conversation

@LecrisUT
Copy link
Collaborator

@LecrisUT LecrisUT commented Apr 23, 2025

This thing is getting in the way a lot

Edit: Yeah, had a hunch it would blow up in various places, but there are more issues than I would have expected

@henryiii
Copy link
Collaborator

We probably can't do this until we depend on something like 3.10+. At that point we could even drop the future import. Generally, the future import means you aren't using the types at runtime, but we are for this module.

@LecrisUT
Copy link
Collaborator Author

Generally, the future import means you aren't using the types at runtime, but we are for this module.

I thought dataclasses are still safe for that.

But any clue on why 3.12 and such are failing?

@henryiii
Copy link
Collaborator

We are processing the type annotations. Pretty much most of this file is for type annotation processing: https://github.com/scikit-build/scikit-build-core/blob/main/src/scikit_build_core/settings/sources.py

I'm guessing those are failing because it's not rendering one of the strings somewhere (in the above linked file). I think we should do that, so likely there's something missing. It might be that you'd need annotationlib (3.14+, backport in typing_extensions), though.

@LecrisUT
Copy link
Collaborator Author

LecrisUT commented May 2, 2025

Closing for now.

@LecrisUT LecrisUT closed this May 2, 2025
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.

2 participants