python-decopatch
python-decopatch copied to clipboard
fix(types): Fix ParamSpec import
Hi, this PR fixes a bug, which appears in new Pyright.
Apparently, we should not use try/except in pyi, and it was working before by mistake.
typing-extensions are already doing necessary if/else checks to use ParamSpec from typing depending on the Python version.
Refs https://github.com/microsoft/pyright/issues/8018