evalf / nutils

The nutils project
http://www.nutils.org/
MIT License
88 stars 48 forks source link

fix SI handling of special binary methods #860

Closed gertjanvanzwieten closed 6 months ago

gertjanvanzwieten commented 6 months ago

This PR fixes the way that SI handles special binary methods such as __add__ by returning NotImplemented rather than raising a TypeError. Additionally it introduces a special SI.DimensionError, and fixes two minor unrelated issues.