We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b84e0c8 commit e449b49Copy full SHA for e449b49
pandas/core/base.py
@@ -361,8 +361,11 @@ def __len__(self) -> int:
361
# We need this defined here for mypy
362
raise AbstractMethodError(self)
363
364
+ # Temporarily avoid using `-> Literal[1]:` because of an IPython (jedi) bug
365
+ # https://github.com/ipython/ipython/issues/14412
366
+ # https://github.com/davidhalter/jedi/issues/1990
367
@property
- def ndim(self) -> Literal[1]:
368
+ def ndim(self) -> int:
369
"""
370
Number of dimensions of the underlying data, by definition 1.
371
0 commit comments