python-decopatch icon indicating copy to clipboard operation
python-decopatch copied to clipboard

fix(types): Fix ParamSpec import

Open last-partizan opened this issue 1 year ago • 1 comments

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

last-partizan avatar May 31 '24 08:05 last-partizan