This is unsound, as described in https://github.com/microsoft/pyright/issues/11007 Depending on ecosystem impact, this maybe has to be opt-in?