Skip to content

Commit 30e6e3f

Browse files
committed
removed 'Optional' using
1 parent 70d1777 commit 30e6e3f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pandas/core/index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from pandas.core.indexes.api import ( # noqa
1+
from pandas.core.indexes.api import ( # noqa:F401
22
CategoricalIndex, DatetimeIndex, Float64Index, Index, Int64Index,
33
IntervalIndex, InvalidIndexError, MultiIndex, NaT, NumericIndex,
44
PeriodIndex, RangeIndex, TimedeltaIndex, UInt64Index, _all_indexes_same,
55
_get_combined_index, _get_consensus_names, _get_objs_combined_axis,
66
_new_Index, _union_indexes, ensure_index, ensure_index_from_sequences)
7-
from pandas.core.indexes.multi import _sparsify # noqa
7+
from pandas.core.indexes.multi import _sparsify # noqa:F401

pandas/core/tools/datetimes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from collections import abc
22
from datetime import datetime, time
33
from functools import partial
4-
from typing import Optional, Union
4+
from typing import Union
55

66
import numpy as np
77

@@ -76,8 +76,8 @@ def _maybe_cache(arg, format, cache, convert_listlike):
7676

7777
def _box_as_indexlike(
7878
dt_array: ArrayLike,
79-
tz: Optional[object] = None,
80-
name: Optional[str] = None
79+
tz=None,
80+
name: str = None
8181
) -> Union[ABCIndex, ABCDatetimeIndex]:
8282
"""
8383
Properly boxes the ndarray of datetimes to DatetimeIndex
@@ -108,7 +108,7 @@ def _convert_and_box_cache(
108108
arg: DatetimeScalarOrArrayConvertible,
109109
cache_array: ABCSeries,
110110
box: bool,
111-
name: Optional[str] = None
111+
name: str = None
112112
) -> Union[ABCIndex, np.ndarray]:
113113
"""
114114
Convert array of dates with a cache and box the result

0 commit comments

Comments
 (0)