Skip to content

Update empty Python data structure constructors#2289

Merged
ndgrigorian merged 1 commit intomasterfrom
use-simplified-python-constructors
Apr 24, 2026
Merged

Update empty Python data structure constructors#2289
ndgrigorian merged 1 commit intomasterfrom
use-simplified-python-constructors

Conversation

@ndgrigorian
Copy link
Copy Markdown
Collaborator

This PR updates and makes consistent formatting in the project, by opting to replace all calls to the named constructors of empty Python data structures (list(), dict(), and tuple()) with their simpler constructors ([], {}, ()).

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?
  • If this PR is a work in progress, are you opening the PR as a draft?

use the simplified constuctors throughtout the project
@github-actions
Copy link
Copy Markdown

@coveralls
Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 77.341%. remained the same — use-simplified-python-constructors into master

Comment thread docs/doc_sources/conf.py.in
Copy link
Copy Markdown
Collaborator

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

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

No more comments from me, LGTM
Thank you @ndgrigorian

@ndgrigorian ndgrigorian merged commit 52ddad9 into master Apr 24, 2026
74 checks passed
@ndgrigorian ndgrigorian deleted the use-simplified-python-constructors branch April 24, 2026 17:40
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.

3 participants