|
6 | 6 | import operator
|
7 | 7 | import pickle
|
8 | 8 | from textwrap import dedent
|
| 9 | +from typing import FrozenSet, List, Set |
9 | 10 | import warnings
|
10 | 11 | import weakref
|
11 | 12 |
|
@@ -108,12 +109,13 @@ class NDFrame(PandasObject, SelectionMixin):
|
108 | 109 | _internal_names = ['_data', '_cacher', '_item_cache', '_cache', '_is_copy',
|
109 | 110 | '_subtyp', '_name', '_index', '_default_kind',
|
110 | 111 | '_default_fill_value', '_metadata', '__array_struct__',
|
111 |
| - '__array_interface__'] |
112 |
| - _internal_names_set = set(_internal_names) |
113 |
| - _accessors = frozenset() |
114 |
| - _deprecations = frozenset(['as_blocks', 'blocks', |
115 |
| - 'convert_objects', 'is_copy']) |
116 |
| - _metadata = [] |
| 112 | + '__array_interface__'] # type: List[str] |
| 113 | + _internal_names_set = set(_internal_names) # type: Set[str] |
| 114 | + _accessors = set() # type: Set[str] |
| 115 | + _deprecations = frozenset([ |
| 116 | + 'as_blocks', 'blocks', 'convert_objects', 'is_copy' |
| 117 | + ]) # type: FrozenSet[str] |
| 118 | + _metadata = [] # type: List[str] |
117 | 119 | _is_copy = None
|
118 | 120 |
|
119 | 121 | # ----------------------------------------------------------------------
|
|
0 commit comments