rok commented on code in PR #55264:
URL: https://github.com/apache/arrow/pull/55264#discussion_r4525605066
##########
python/pyarrow/tests/test_array.py:
##########
@@ -18,20 +18,24 @@
from collections.abc import Iterable
import datetime
import decimal
-import hypothesis as h
-import hypothesis.strategies as st
+import hypothesis as h # type: ignore[import-not-found]
+import hypothesis.strategies as st # type: ignore[import-not-found]
import itertools
import operator
-import pytest
+import pytest # type: ignore[import-not-found]
import struct
import subprocess
import sys
import weakref
+from typing import TYPE_CHECKING
-try:
+if TYPE_CHECKING:
import numpy as np
-except ImportError:
- np = None
+else:
+ try:
+ import numpy as np
+ except ImportError:
+ np = None
Review Comment:
Removed `if TYPE_CHECKING:` clauses.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]