[PyCharm Tables] PY-73557 added a dot for a type safety (avoid collision with users' types)

GitOrigin-RevId: e4215a9b877db8b110c535c998c1c6469d32a30d
This commit is contained in:
Natalia.Murycheva
2024-07-17 10:33:39 +02:00
committed by intellij-monorepo-bot
parent 39401a806f
commit 2e297515eb

View File

@@ -77,7 +77,7 @@ def _get_external_collection_repr(collection, raise_exception=False):
raise e
# ndarray and other numpy types
try:
if typename == 'ndarray' or "numpy" in str(typename_with_package):
if typename == 'ndarray' or "numpy." in str(typename_with_package):
return _get_ndarray_variable_repr(collection)
except Exception as e:
pydev_log.warn("Failed to format numpy ndarray: " + str(e))