data-apis / python-record-api

Inferring Python API signatures from tracing usage.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix ufunc call

saulshanabrook opened this issue · comments

This doesn't look right, the real function doesn't include one of the overloads:

class ufunc:
    @overload
    def __call__(self, _0: numpy.ndarray, _1: numpy.ndarray, /):
        """
        usage.sample-usage: 1
        """
        ...

    @overload
    def __call__(self, _0: numpy.ndarray, /):
        """
        usage.sample-usage: 2
        """
        ...

    def __call__(self, _0: numpy.ndarray, /):
        """
        usage.sample-usage: 3
        """