@@ -8247,7 +8247,7 @@ def differentiate(
82478247 The coordinate to be used to compute the gradient.
82488248 edge_order : {1, 2}, default: 1
82498249 N-th order accurate differences at the boundaries.
8250- datetime_unit : None or {"Y", "M", " W", "D", "h", "m", "s", "ms", \
8250+ datetime_unit : None or {"W", "D", "h", "m", "s", "ms", \
82518251 "us", "ns", "ps", "fs", "as", None}, default: None
82528252 Unit to compute gradient. Only valid for datetime coordinate.
82538253
@@ -8303,7 +8303,7 @@ def differentiate(
83038303 def integrate (
83048304 self ,
83058305 coord : Hashable | Sequence [Hashable ],
8306- datetime_unit : DatetimeUnitOptions = None ,
8306+ datetime_unit : DatetimeUnitOptions | None = None ,
83078307 ) -> Self :
83088308 """Integrate along the given coordinate using the trapezoidal rule.
83098309
@@ -8315,7 +8315,7 @@ def integrate(
83158315 ----------
83168316 coord : hashable, or sequence of hashable
83178317 Coordinate(s) used for the integration.
8318- datetime_unit : {'Y', 'M', ' W', 'D', 'h', 'm', 's', 'ms', 'us', 'ns', \
8318+ datetime_unit : {'W', 'D', 'h', 'm', 's', 'ms', 'us', 'ns', \
83198319 'ps', 'fs', 'as', None}, optional
83208320 Specify the unit if datetime coordinate is used.
83218321
@@ -8423,7 +8423,7 @@ def _integrate_one(self, coord, datetime_unit=None, cumulative=False):
84238423 def cumulative_integrate (
84248424 self ,
84258425 coord : Hashable | Sequence [Hashable ],
8426- datetime_unit : DatetimeUnitOptions = None ,
8426+ datetime_unit : DatetimeUnitOptions | None = None ,
84278427 ) -> Self :
84288428 """Integrate along the given coordinate using the trapezoidal rule.
84298429
@@ -8439,7 +8439,7 @@ def cumulative_integrate(
84398439 ----------
84408440 coord : hashable, or sequence of hashable
84418441 Coordinate(s) used for the integration.
8442- datetime_unit : {'Y', 'M', ' W', 'D', 'h', 'm', 's', 'ms', 'us', 'ns', \
8442+ datetime_unit : {'W', 'D', 'h', 'm', 's', 'ms', 'us', 'ns', \
84438443 'ps', 'fs', 'as', None}, optional
84448444 Specify the unit if datetime coordinate is used.
84458445
0 commit comments