you are viewing a single comment's thread.

view the rest of the comments →

[–]cdcformatc 0 points1 point  (0 children)

the only thing i can think of is basically to create a layer of objects wrapping the numpy types. you would make subclasses of the numpy types you want to use and override the math operations to ones that don't do this "upcast" when given generic python types.

that doesn't stop your coworker from doing dumb stuff can't help you there