I described the problem here: https://github.com/microsoft/pyright/issues/5024 and also here: https://github.com/microsoft/pylance-release/issues/4289