Skip to content

Commit

Permalink
Disable two doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
wesselb committed Jun 17, 2024
1 parent bfb6164 commit 680ba74
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/union_aliases.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ If we don't include all of `scalar_types`, we won't see `Scalar`, as desired:
%
% import sys

% skip: next if(sys.version_info < (3, 9), reason="Requires Python 3.9 or higher.")

```python
% skip: next "Result depends on NumPy version.'
>>> Union[tuple(scalar_types[:-1])]
typing.Union[numpy.int8, numpy.int16, numpy.int32, numpy.longlong, numpy.int64, numpy.uint8, numpy.uint16, numpy.uint32, numpy.uint64, numpy.ulonglong, numpy.float16, numpy.float32, numpy.float64, numpy.longdouble, numpy.complex64, numpy.complex128, numpy.clongdouble, numpy.str_, numpy.bytes_, numpy.void, numpy.bool]
```
Expand All @@ -103,7 +102,7 @@ You can deactivate union aliases with `deactivate_union_aliases`:

>>> deactivate_union_aliases()

% skip: next if(sys.version_info < (3, 9), reason="Requires Python 3.9 or higher.")
% skip: next "Result depends on NumPy version.'
>>> Scalar
typing.Union[numpy.int8, numpy.int16, numpy.int32, numpy.longlong, numpy.int64, numpy.uint8, numpy.uint16, numpy.uint32, numpy.uint64, numpy.ulonglong, numpy.float16, numpy.float32, numpy.float64, numpy.longdouble, numpy.complex64, numpy.complex128, numpy.clongdouble, numpy.str_, numpy.bytes_, numpy.void, numpy.bool, numpy.object_]
```

0 comments on commit 680ba74

Please sign in to comment.