Skip to content

Change python requirement in pyproject.toml#214

Merged
asbjrnmunk merged 1 commit into
mainfrom
require_python_311
May 14, 2025
Merged

Change python requirement in pyproject.toml#214
asbjrnmunk merged 1 commit into
mainfrom
require_python_311

Conversation

@asbjrnmunk
Copy link
Copy Markdown
Collaborator

It seems the file functional/transforms/masking.py is using the following syntax

batch[:, :, grid[*slices] == 0] = pixel_value

.. which is only valid python after PEP 646 introduced in Python 3.11.

This PR changes yucca to formally require Python 311.

@asbjrnmunk asbjrnmunk requested a review from Sllambias May 13, 2025 22:01
Copy link
Copy Markdown
Owner

@Sllambias Sllambias left a comment

Choose a reason for hiding this comment

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

nice one lgtm :))

@asbjrnmunk asbjrnmunk merged commit d47319d into main May 14, 2025
3 checks passed
@asbjrnmunk asbjrnmunk deleted the require_python_311 branch May 14, 2025 08:44
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