Skip to content

Fix missing imports and NameError in bell_chsh.py#8

Merged
divyang4481 merged 1 commit into
mainfrom
fix-bell-chsh-imports-17111475948762533249
Jun 5, 2026
Merged

Fix missing imports and NameError in bell_chsh.py#8
divyang4481 merged 1 commit into
mainfrom
fix-bell-chsh-imports-17111475948762533249

Conversation

@divyang4481

Copy link
Copy Markdown
Owner

This change fixes a NameError in xtheta-lab/xtheta/data/bell_chsh.py where dataclass was not defined, causing test collection to fail. It also addresses other missing imports in the same file. Additionally, the documentation in xtheta-lab/README.md was updated with a note regarding Python version compatibility for scientific reproducibility.

Key changes:

  • Added from __future__ import annotations and required imports to bell_chsh.py.
  • Configured dataclasses to skip automatic __init__ generation where custom initialization is present.
  • Added scientific note about recommended Python versions (3.11/3.12) to README.

PR created automatically by Jules for task 17111475948762533249 started by @divyang4481

- Added missing imports for dataclass, pandas, and BellEventSchema in `xtheta-lab/xtheta/data/bell_chsh.py`.
- Updated RunningAB and ThetaBinnedAB to use `@dataclass(init=False)` to maintain existing manual `__init__` logic.
- Added Python version compatibility note to `xtheta-lab/README.md`.
- Verified all tests pass in the environment.
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@divyang4481 divyang4481 merged commit a2f3358 into main Jun 5, 2026
1 check passed
@divyang4481 divyang4481 deleted the fix-bell-chsh-imports-17111475948762533249 branch June 5, 2026 16:16
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.

1 participant