@@ -8,6 +8,7 @@ from abc import abstractmethod
88from types import TracebackType , MappingProxyType
99from contextlib import ContextDecorator
1010
11+ from numpy .core .multiarray import flagsobj
1112from numpy .core ._internal import _ctypes
1213from numpy .typing import (
1314 # Arrays
@@ -1121,36 +1122,6 @@ class dtype(Generic[_DTypeScalar_co]):
11211122 @property
11221123 def type (self ) -> Type [_DTypeScalar_co ]: ...
11231124
1124- class _flagsobj :
1125- aligned : bool
1126- updateifcopy : bool
1127- writeable : bool
1128- writebackifcopy : bool
1129- @property
1130- def behaved (self ) -> bool : ...
1131- @property
1132- def c_contiguous (self ) -> bool : ...
1133- @property
1134- def carray (self ) -> bool : ...
1135- @property
1136- def contiguous (self ) -> bool : ...
1137- @property
1138- def f_contiguous (self ) -> bool : ...
1139- @property
1140- def farray (self ) -> bool : ...
1141- @property
1142- def fnc (self ) -> bool : ...
1143- @property
1144- def forc (self ) -> bool : ...
1145- @property
1146- def fortran (self ) -> bool : ...
1147- @property
1148- def num (self ) -> int : ...
1149- @property
1150- def owndata (self ) -> bool : ...
1151- def __getitem__ (self , key : str ) -> bool : ...
1152- def __setitem__ (self , key : str , value : bool ) -> None : ...
1153-
11541125_ArrayLikeInt = Union [
11551126 int ,
11561127 integer ,
@@ -1203,7 +1174,7 @@ class _ArrayOrScalarCommon:
12031174 @property
12041175 def data (self ) -> memoryview : ...
12051176 @property
1206- def flags (self ) -> _flagsobj : ...
1177+ def flags (self ) -> flagsobj : ...
12071178 @property
12081179 def itemsize (self ) -> int : ...
12091180 @property
0 commit comments