Skip to content

Commit 67a3263

Browse files
committed
fixup name
1 parent e6183cd commit 67a3263

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/series.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from io import StringIO
66
from shutil import get_terminal_size
77
from textwrap import dedent
8-
from typing import Any, Callable, Hashable, List, Optional
8+
from typing import Any, Callable, Hashable, List
99
import warnings
1010

1111
import numpy as np
@@ -472,7 +472,7 @@ def dtypes(self):
472472
return self._data.dtype
473473

474474
@property
475-
def name(self) -> Optional[Hashable]:
475+
def name(self) -> Hashable:
476476
return self.attrs.get("name", None)
477477

478478
@name.setter

0 commit comments

Comments
 (0)