Disable Type Checker for specific function or namespace

For some reason PyCharm gets torch.einsum signature wrong, and every call to torch.einsum triggers Type Checker failure

```

def einsum(equation, *operands):
r"""einsum(equation, *operands) -> Tensor

```

 

 

More generally, "torch" namespace is hard because a lot of functions support automatic conversion from numpy arrays, which is not properly documented in their function signature. Is there a way to disable type checking for an entire namespace?

 

1 comment
Comment actions Permalink

Hmm, seems to be a duplicate of https://youtrack.jetbrains.com/issue/PY-38035

Please follow the ticket for updates.

0

Please sign in to leave a comment.