Skip to content

Commit 0dce3c2

Browse files
thelonelyvulpesrobsdedude
authored andcommitted
Refactor: unify tuple concatenation
Signed-off-by: Rouven Bauer <[email protected]>
1 parent 7ecfed6 commit 0dce3c2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/neo4j/_codec/packstream/v1/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,14 @@
4545

4646

4747
if np is not None:
48-
TRUE_VALUES += (np.bool_(True),)
49-
FALSE_VALUES += (np.bool_(False),)
48+
TRUE_VALUES = (*TRUE_VALUES, np.bool_(True))
49+
FALSE_VALUES = (*FALSE_VALUES, np.bool_(False))
5050
INT_TYPES = (*INT_TYPES, np.integer)
5151
FLOAT_TYPES = (*FLOAT_TYPES, np.floating)
5252
SEQUENCE_TYPES = (*SEQUENCE_TYPES, np.ndarray)
5353

5454
if pd is not None:
55-
import pandas.core.arrays
56-
57-
NONE_VALUES += (pd.NA,)
55+
NONE_VALUES = (*NONE_VALUES, pd.NA)
5856
SEQUENCE_TYPES = (*SEQUENCE_TYPES, pd.Series, pd.Categorical,
5957
pd.core.arrays.ExtensionArray)
6058
MAPPING_TYPES = (*MAPPING_TYPES, pd.DataFrame)

0 commit comments

Comments
 (0)