File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -284,6 +284,7 @@ ignore = [
284
284
# don't enforce absolute imports
285
285
"asv_bench/**" = [" TID252" ]
286
286
# looks like ruff bugs
287
+ "xarray/core/_typed_ops.py" = [" PYI034" ]
287
288
"xarray/namedarray/_typing.py" = [" PYI018" ]
288
289
289
290
[tool .ruff .lint .isort ]
Original file line number Diff line number Diff line change 5
5
6
6
import numpy as np
7
7
import pandas as pd
8
+ from typing_extensions import Self
8
9
9
10
from xarray .coding .calendar_ops import _decimal_year
10
11
from xarray .coding .times import infer_calendar_name
@@ -650,7 +651,7 @@ def total_seconds(self) -> T_DataArray:
650
651
class CombinedDatetimelikeAccessor (
651
652
DatetimeAccessor [T_DataArray ], TimedeltaAccessor [T_DataArray ]
652
653
):
653
- def __new__ (cls , obj : T_DataArray ) -> CombinedDatetimelikeAccessor :
654
+ def __new__ (cls , obj : T_DataArray ) -> Self :
654
655
# CombinedDatetimelikeAccessor isn't really instantiated. Instead
655
656
# we need to choose which parent (datetime or timedelta) is
656
657
# appropriate. Since we're checking the dtypes anyway, we'll just
You can’t perform that action at this time.
0 commit comments