Skip to content

Fix shape check in modularity.py#134

Merged
aestrivex merged 1 commit intoaestrivex:masterfrom
mibur1:patch-1
Sep 16, 2025
Merged

Fix shape check in modularity.py#134
aestrivex merged 1 commit intoaestrivex:masterfrom
mibur1:patch-1

Conversation

@mibur1
Copy link
Copy Markdown
Contributor

@mibur1 mibur1 commented Sep 16, 2025

This PR replaces an identity comparison with a literal tuple with a value-based comparison

Using is not () triggers a SyntaxWarning in recent Python versions, since is/is not check object identity rather than equality. The intended behaviour is to check whether the shape tuple is non-empty, which is correctly expressed with != ().

@aestrivex aestrivex merged commit 61fe288 into aestrivex:master Sep 16, 2025
0 of 4 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