See - https://github.com/python/mypy/pull/13471 - https://stackoverflow.com/a/63550734