Skip to content

[PR 1/5] A few pyink lint fixes from previous PR - #494

Closed
jitendra-jalwaniya wants to merge 1 commit into
mainfrom
pyink_fixes_480
Closed

jitendra-jalwaniya wants to merge 1 commit into
mainfrom
pyink_fixes_480

Conversation

@jitendra-jalwaniya

@jitendra-jalwaniya jitendra-jalwaniya commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

There were a few lint issues introduced in PR #480, this PR fixes them.

@github-actions

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request simplifies and formats several multi-line expressions into single-line statements across multiple files, including aot_cache.py, wan_pipeline.py, and their corresponding tests. However, the reviewer identified a potential bug in the refactored attention_config retrieval logic in both aot_cache.py and wan_pipeline.py. Specifically, using the 'or' operator can cause a falsy fallback if attention_config is an empty dictionary, resulting in an incorrect None value. The reviewer recommends replacing these expressions with direct conditional checks to ensure robustness.

Comment thread src/maxdiffusion/aot_cache.py
Comment thread src/maxdiffusion/pipelines/wan/wan_pipeline.py
Comment thread src/maxdiffusion/pipelines/wan/wan_pipeline.py
@jitendra-jalwaniya jitendra-jalwaniya changed the title lint: apply pyink 23.10.0 formatting to files from #480 A few pyink lint fixes from previous PR Sep 29, 2026
@jitendra-jalwaniya jitendra-jalwaniya changed the title A few pyink lint fixes from previous PR [PR 1/5] A few pyink lint fixes from previous PR Sep 29, 2026
@jitendra-jalwaniya
jitendra-jalwaniya requested review from Perseus14 and removed request for entrpn September 29, 2026 07:54
@Perseus14

Copy link
Copy Markdown
Collaborator

Duplicate of #493

@Perseus14 Perseus14 marked this as a duplicate of #493 Sep 29, 2026
@jitendra-jalwaniya

Copy link
Copy Markdown
Collaborator Author

Duplicate of #493

Got it. Please review the other PRs. I'll discard this

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