Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
zkarpinski committed Jan 9, 2025
1 parent 1e1d12f commit abd40c0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions moto/ses/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from moto.core.common_models import BaseModel
from moto.core.utils import utcnow
from moto.sns.models import sns_backends
from moto.utilities.paginator import paginate

from .exceptions import (
ConfigurationSetAlreadyExists,
Expand Down Expand Up @@ -503,12 +502,10 @@ def describe_configuration_set(
def delete_configuration_set(self, configuration_set_name: str) -> None:
self.config_sets.pop(configuration_set_name)

@paginate(pagination_model=PAGINATION_MODEL)
def list_configuration_sets(self) -> List[str]:
config_set_names = []
for k in self.config_sets.keys():
config_set_names.append(str(k))
return config_set_names
def list_configuration_sets(
self, next_token: Optional[str], max_items: Optional[int]
) -> List[str]:
return list(self.config_sets.keys())

def create_configuration_set_event_destination(
self, configuration_set_name: str, event_destination: Dict[str, Any]
Expand Down

0 comments on commit abd40c0

Please sign in to comment.