Skip to content

fix(python): avoid shared list defaults on rotor/proj types - #9813

Open
Bartok9 wants to merge 1 commit into
microsoft:mainfrom
Bartok9:aerial/2026-07-25-rotor-proj-list-defaults
Open

fix(python): avoid shared list defaults on rotor/proj types#9813
Bartok9 wants to merge 1 commit into
microsoft:mainfrom
Bartok9:aerial/2026-07-25-rotor-proj-list-defaults

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 25, 2026

Copy link
Copy Markdown

RotorStates.rotors and ProjectionMatrix.matrix used a shared class-level []. Default them to None so local instances do not share buffers before RPC fill.

AI-assisted; human-reviewed.

Claim: bartok
Operator: bartok
Campaign: aerial-drone

…onMatrix

Class-level `[]` is a mutable default shared by all instances. Use None so
local construction cannot cross-contaminate rotors/matrix before RPC fill.

Signed-off-by: Bartok9 <danielrpike9@gmail.com>
@Bartok9 Bartok9 changed the title fix(python): avoid shared empty-list defaults on RotorStates/ProjectionMatrix fix(python): avoid shared list defaults on rotor/proj types Jul 25, 2026
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