Skip to content

Add type annotations to ProductPipeline in build-script #82780

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MaxDesiatov
Copy link
Contributor

This prevents possible runtime type errors and helped uncovering #82777. It also server as an improvement o documentation, as provides inferred type annotations for users of this class and callers of its methods.

This prevents possible runtime type errors and helped uncovering #82777. It also server as an improvement o documentation, as provides inferred type annotations for users of this class and callers of its methods.
@MaxDesiatov MaxDesiatov requested a review from edymtt July 3, 2025 18:23
@MaxDesiatov MaxDesiatov requested a review from etcwilde as a code owner July 3, 2025 18:23
@MaxDesiatov MaxDesiatov added the build-script Area → utils: The build script label Jul 3, 2025
@MaxDesiatov MaxDesiatov added the python Flag: Python source code label Jul 3, 2025
@@ -137,11 +141,11 @@ def infer(self):
p.get_dependencies()))

for i in range(len(inferred_pipeline_list)):
pipeline = inferred_pipeline_list[i]
inferred_pipeline = inferred_pipeline_list[i]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

renaming pipeline here as otherwise we essentially rebound this variable with values of different type, which I don't think plays well with type annotations

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov MaxDesiatov marked this pull request as draft July 3, 2025 21:41
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test macos

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-script Area → utils: The build script python Flag: Python source code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant