Skip to content

Commit 9c7bde2

Browse files
committed
SingleBlockManager.blocks should be a tuple
1 parent 32e07d0 commit 9c7bde2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/internals/managers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import itertools
44
import operator
55
import re
6-
from typing import List, Optional, Union, Sequence, Tuple
6+
from typing import List, Optional, Sequence, Tuple, Union
77

88
import numpy as np
99

@@ -1461,7 +1461,7 @@ def __init__(self,
14611461
if not isinstance(block, Block):
14621462
block = make_block(block, placement=slice(0, len(axis)), ndim=1)
14631463

1464-
self.blocks = [block] # type: List[Block]
1464+
self.blocks = tuple([block]) # type: Tuple[Block]
14651465

14661466
def _post_setstate(self):
14671467
pass

0 commit comments

Comments
 (0)