diff --git a/moto/events/models.py b/moto/events/models.py index d8d0cc229..7e33ef189 100644 --- a/moto/events/models.py +++ b/moto/events/models.py @@ -878,7 +878,7 @@ class EventPattern: event = json.loads(json.dumps(event)) return self._does_event_match(event, self._pattern) - def _does_event_match(self, event: Dict[str, Any], pattern: Dict[str, str]) -> bool: + def _does_event_match(self, event: Dict[str, Any], pattern: Dict[str, Any]) -> bool: items_and_filters = [(event.get(k, UNDEFINED), v) for k, v in pattern.items()] nested_filter_matches = [ self._does_event_match(item, nested_filter) diff --git a/moto/route53/responses.py b/moto/route53/responses.py index f13cecb2a..514b75793 100644 --- a/moto/route53/responses.py +++ b/moto/route53/responses.py @@ -250,8 +250,8 @@ class Route53(BaseResponse): is_truncated, ) = self.backend.list_resource_record_sets( zoneid, - start_type=start_type, - start_name=start_name, + start_type=start_type, # type: ignore + start_name=start_name, # type: ignore max_items=max_items, ) r_template = template.render( diff --git a/moto/s3/models.py b/moto/s3/models.py index bd42fe479..c74afadea 100644 --- a/moto/s3/models.py +++ b/moto/s3/models.py @@ -2328,7 +2328,7 @@ class S3Backend(BaseBackend, CloudWatchMetricProvider): part_id: int, src_bucket_name: str, src_key_name: str, - src_version_id: str, + src_version_id: Optional[str], start_byte: int, end_byte: int, ) -> FakeKey: diff --git a/moto/s3/responses.py b/moto/s3/responses.py index 54dc48b97..719b26010 100644 --- a/moto/s3/responses.py +++ b/moto/s3/responses.py @@ -1500,11 +1500,11 @@ class S3Response(BaseResponse): bucket_name, upload_id, part_number, - src_bucket, - src_key, - src_version_id, - start_byte, - end_byte, + src_bucket_name=src_bucket, + src_key_name=src_key, + src_version_id=src_version_id, + start_byte=start_byte, + end_byte=end_byte, ) else: return 404, response_headers, ""