from typing import ParamSpec
from collections.abc import Callable
P = ParamSpec("P")
def decorator(func: Callable[P, None]) -> Callable[P, None]:
pass
class BaseFactory:
@classmethod
@decorator
def create(cls, *args, **kwargs):
return super().create(*args, **kwargs)
class ChildFactory(BaseFactory):
@classmethod
def create(cls, *args, **kwargs):
return super().create(*args, **kwargs)
npx @sourcegraph/scip-python index --cwd ${pathToIndexRoot} --output ${scipFile}
Experienced Fatal Error While Indexing:\nPlease create an issue at github.com/sourcegraph/scip-python: {\n currentFilepath: '/Users/kevinxu/Documents/work/detail/packages/codetools/src/test_data/sample_python_repo/factories/deployment.py',\n error: TypeError: Cannot read properties of undefined (reading 'node')\n at L.getFunctionRelationships (/Users/kevinxu/Documents/work/detail/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@sourcegraph/scip-python/dist/scip-python.js:1:83363)\n at L.visitFunction (/Users/kevinxu/Documents/work/detail/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/
The
scip-python indexcommand is fatally crashing on our python repository.Minimal Error Repro
ParamSpecis available in the standardtypingmodule post 3.10Command:
Environment:
Actual error:
Thought