File tree Expand file tree Collapse file tree 5 files changed +3
-16
lines changed Expand file tree Collapse file tree 5 files changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -89,10 +89,3 @@ Binary format description
89
89
:toctree: generated/
90
90
91
91
lib.format
92
-
93
- Object wrappers
94
- ---------------
95
- .. autosummary ::
96
- :toctree: generated/
97
-
98
- lib.npyio.BagObj
Original file line number Diff line number Diff line change 35
35
overrides .array_function_dispatch , module = 'numpy' )
36
36
37
37
38
- @set_module ('numpy.lib.npyio' )
39
38
class BagObj :
40
39
"""
41
40
BagObj(obj)
@@ -49,7 +48,7 @@ class BagObj:
49
48
50
49
Examples
51
50
--------
52
- >>> from numpy.lib.npyio import BagObj as BO
51
+ >>> from numpy.lib._npyio_impl import BagObj as BO
53
52
>>> class BagDemo:
54
53
... def __getitem__(self, key): # An instance of BagObj(BagDemo)
55
54
... # will call this method when any
Original file line number Diff line number Diff line change 1
- from ._npyio_impl import BagObj , DataSource , NpzFile
1
+ from ._npyio_impl import DataSource , NpzFile
Original file line number Diff line number Diff line change 1
1
from numpy .lib ._npyio_impl import (
2
- BagObj as BagObj ,
3
2
DataSource as DataSource ,
4
3
NpzFile as NpzFile ,
5
4
)
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ pathlib_path: pathlib.Path
10
10
str_file : IO [str ]
11
11
bytes_file : IO [bytes ]
12
12
13
- bag_obj : np .lib .npyio .BagObj [int ]
14
13
npz_file : np .lib .npyio .NpzFile
15
14
16
15
AR_i8 : npt .NDArray [np .int64 ]
@@ -26,15 +25,12 @@ class BytesReader:
26
25
bytes_writer : BytesWriter
27
26
bytes_reader : BytesReader
28
27
29
- reveal_type (bag_obj .a ) # E: int
30
- reveal_type (bag_obj .b ) # E: int
31
-
32
28
reveal_type (npz_file .zip ) # E: zipfile.ZipFile
33
29
reveal_type (npz_file .fid ) # E: Union[None, typing.IO[builtins.str]]
34
30
reveal_type (npz_file .files ) # E: list[builtins.str]
35
31
reveal_type (npz_file .allow_pickle ) # E: bool
36
32
reveal_type (npz_file .pickle_kwargs ) # E: Union[None, typing.Mapping[builtins.str, Any]]
37
- reveal_type (npz_file .f ) # E: lib.npyio .BagObj[lib.npyio.NpzFile]
33
+ reveal_type (npz_file .f ) # E: lib._npyio_impl .BagObj[lib.npyio.NpzFile]
38
34
reveal_type (npz_file ["test" ]) # E: ndarray[Any, dtype[Any]]
39
35
reveal_type (len (npz_file )) # E: int
40
36
with npz_file as f :
You can’t perform that action at this time.
0 commit comments