Skip to content

Commit ab6cb98

Browse files
Update test_numpy.py
Getting this error for Python 3.9 but not Python 3.10 or 3.11: ``` pandas/tests/extension/test_numpy.py:282: in TestArithmetics ) -> type[Exception] | None: E TypeError: unsupported operand type(s) for |: 'types.GenericAlias' and 'NoneType' ``` Perhaps what's missing is this import statement? Signed-off-by: Michael Tiemann <[email protected]>
1 parent eafa7c9 commit ab6cb98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tests/extension/test_numpy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
Note: we do not bother with base.BaseIndexTests because NumpyExtensionArray
1616
will never be held in an Index.
1717
"""
18+
from __future__ import annotations
19+
1820
import numpy as np
1921
import pytest
2022

0 commit comments

Comments
 (0)