We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ecfed6 commit 0dce3c2Copy full SHA for 0dce3c2
src/neo4j/_codec/packstream/v1/__init__.py
@@ -45,16 +45,14 @@
45
46
47
if np is not None:
48
- TRUE_VALUES += (np.bool_(True),)
49
- FALSE_VALUES += (np.bool_(False),)
+ TRUE_VALUES = (*TRUE_VALUES, np.bool_(True))
+ FALSE_VALUES = (*FALSE_VALUES, np.bool_(False))
50
INT_TYPES = (*INT_TYPES, np.integer)
51
FLOAT_TYPES = (*FLOAT_TYPES, np.floating)
52
SEQUENCE_TYPES = (*SEQUENCE_TYPES, np.ndarray)
53
54
if pd is not None:
55
- import pandas.core.arrays
56
-
57
- NONE_VALUES += (pd.NA,)
+ NONE_VALUES = (*NONE_VALUES, pd.NA)
58
SEQUENCE_TYPES = (*SEQUENCE_TYPES, pd.Series, pd.Categorical,
59
pd.core.arrays.ExtensionArray)
60
MAPPING_TYPES = (*MAPPING_TYPES, pd.DataFrame)
0 commit comments