@@ -313,8 +313,8 @@ def __init__(
313313 length : int | None = None ,
314314 match_etag : str | None = None ,
315315 not_match_etag : str | None = None ,
316- modified_since : str | None = None ,
317- unmodified_since : str | None = None ,
316+ modified_since : datetime | None = None ,
317+ unmodified_since : datetime | None = None ,
318318 ):
319319 if ssec is not None and not isinstance (ssec , SseCustomerKey ):
320320 raise ValueError ("ssec must be SseCustomerKey type" )
@@ -395,12 +395,12 @@ def not_match_etag(self) -> str | None:
395395 return self ._not_match_etag
396396
397397 @property
398- def modified_since (self ) -> str | None :
398+ def modified_since (self ) -> datetime | None :
399399 """Get modified since condition."""
400400 return self ._modified_since
401401
402402 @property
403- def unmodified_since (self ) -> str | None :
403+ def unmodified_since (self ) -> datetime | None :
404404 """Get unmodified since condition."""
405405 return self ._unmodified_since
406406
@@ -460,8 +460,8 @@ def __init__(
460460 length : int | None = None ,
461461 match_etag : str | None = None ,
462462 not_match_etag : str | None = None ,
463- modified_since : str | None = None ,
464- unmodified_since : str | None = None ,
463+ modified_since : datetime | None = None ,
464+ unmodified_since : datetime | None = None ,
465465 ):
466466 super ().__init__ (
467467 bucket_name , object_name , region , version_id , ssec , offset , length ,
0 commit comments