Skip to content

Some type fixes - #1138

Open
flying-sheep wants to merge 11 commits into
pypa:masterfrom
flying-sheep:type-fixes
Open

Some type fixes#1138
flying-sheep wants to merge 11 commits into
pypa:masterfrom
flying-sheep:type-fixes

Conversation

@flying-sheep

@flying-sheep flying-sheep commented Dec 13, 2023

Copy link
Copy Markdown
Member

ProjectMetadata is generic over the PluginManager, so things holding it should be too.

While adding a parameter to BuildHookInterface is a breaking change (Python should support optional named type parameters like TypeScript to avoid that), BuilderInterface is an especially low hanging fruit, as it is already generic over PluginManagerBound, so my changes to it just surface things that are already true.

One kinda unrelated change is that get_version_api’s documentation seems wrong. build_data seems to be **kwargs, not a single parameter.

There might be other classes to fix, but I only encountered those two so far.

@flying-sheep

Copy link
Copy Markdown
Member Author

@ofek what do you think?

@cjames23

Copy link
Copy Markdown
Member

@flying-sheep can you rebase this so we can review it? Or otherwise I can close it out.

@flying-sheep

Copy link
Copy Markdown
Member Author

done

@cjames23

cjames23 commented Jun 9, 2026

Copy link
Copy Markdown
Member

@flying-sheep looks like there is a type-ignore that is no longer needed from these changes

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