Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC: inconsistency between doc and code #24277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions doc/source/user/basics.dispatch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ For this example we will only handle the method ``__call__``
... elif isinstance(input, self.__class__):
... scalars.append(input._i)
... if N is not None:
... if N != self._N:
... if N != input._N:
... raise TypeError("inconsistent sizes")
... else:
... N = self._N
... N = input._N
... else:
... return NotImplemented
... return self.__class__(N, ufunc(*scalars, **kwargs))
Expand Down Expand Up @@ -147,10 +147,10 @@ conveniently by inheriting from the mixin
... elif isinstance(input, self.__class__):
... scalars.append(input._i)
... if N is not None:
... if N != self._N:
... if N != input._N:
... raise TypeError("inconsistent sizes")
... else:
... N = self._N
... N = input._N
... else:
... return NotImplemented
... return self.__class__(N, ufunc(*scalars, **kwargs))
Expand Down Expand Up @@ -186,10 +186,10 @@ functions to our custom variants.
... elif isinstance(input, self.__class__):
... scalars.append(input._i)
... if N is not None:
... if N != self._N:
... if N != input._N:
... raise TypeError("inconsistent sizes")
... else:
... N = self._N
... N = input._N
... else:
... return NotImplemented
... return self.__class__(N, ufunc(*scalars, **kwargs))
Expand Down