Skip to content

Conversation

@wolfv
Copy link
Member

@wolfv wolfv commented Oct 29, 2025

No description provided.

@wolfv wolfv force-pushed the py-rattler-build-refactor branch from 4486951 to 47f3017 Compare October 30, 2025 12:23
Comment on lines +12 to +19
# For type checking, use Any as placeholder since we don't have stubs
_Stage1Recipe = Any
_Stage1Package = Any
_Stage1Build = Any
_Stage1Requirements = Any
_Stage1About = Any
_Stage1Source = Any
_Stage1StagingCache = Any
Copy link
Contributor

Choose a reason for hiding this comment

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

Why would this be necessary?

self._inner = inner

@property
def homepage(self) -> Optional[str]:
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's remember to use ruff here to migrate all use cases of Optional[str] to the newer str | None syntax

}

/// Get the compression level
#[getter]
Copy link
Contributor

Choose a reason for hiding this comment

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

I am curious about the heavy use of implicit getters and setters in this API.

My impression is that it's more common to use PyPackagingSettings.set_compression_level(..) instead of PyPackagingSettings.compression_level = .., especially if there's logic happening behind the scenes

@Hofer-Julian Hofer-Julian merged commit 3a5a9bd into prefix-dev:refactor Nov 4, 2025
11 of 16 checks passed
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