Skip to content

CameraController: implement BaseModel instead#77

Open
gselzer wants to merge 3 commits intopyapp-kit:mainfrom
gselzer:camera-controller-base-model
Open

CameraController: implement BaseModel instead#77
gselzer wants to merge 3 commits intopyapp-kit:mainfrom
gselzer:camera-controller-base-model

Conversation

@gselzer
Copy link
Copy Markdown
Collaborator

@gselzer gselzer commented Apr 27, 2026

There's no current use case for events on these classes, and it's causing issues downstream.

There's no current use case for events on these classes, and it's
causing issues downstream.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR changes the camera controller models to no longer be event-emitting (EventedBase), aiming to avoid downstream issues caused by events on these classes.

Changes:

  • Switched CameraController inheritance from EventedBase to pydantic.BaseModel.
  • Updated several docstring examples to use import scenex as snx and fully-qualified names.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/scenex/model/_nodes/camera.py
Comment thread src/scenex/model/_nodes/camera.py Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.09%. Comparing base (53b9f95) to head (02ed627).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #77   +/-   ##
=======================================
  Coverage   88.08%   88.09%           
=======================================
  Files          64       64           
  Lines        3182     3184    +2     
=======================================
+ Hits         2803     2805    +2     
  Misses        379      379           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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