See https://github.com/microsoft/pyright/pull/2546
See microsoft/pyright#2546