We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f0c033 commit 8d7da12Copy full SHA for 8d7da12
pandas-stubs/_typing.pyi
@@ -209,7 +209,11 @@ RandomState: TypeAlias = (
209
)
210
211
# dtypes
212
-NpDtypeNoStr: TypeAlias = np.dtype[np.generic] | type[complex | bool | object]
+if sys.version_info >= (3, 11):
213
+ NpDtypeNoStr: TypeAlias = np.dtype | type[complex | bool | object]
214
+else:
215
+ NpDtypeNoStr: TypeAlias = np.dtype[Any] | type[complex | bool | object]
216
+
217
NpDtype: TypeAlias = str | NpDtypeNoStr | type[str]
218
Dtype: TypeAlias = ExtensionDtype | NpDtype
219
0 commit comments