Skip to content

Commit

Permalink
Fix support of multiple settings (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
jag-k authored Nov 27, 2024
1 parent ed918c5 commit b384e12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydantic_settings_export/generators/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ def file_paths(self) -> list[Path]:
"""

@classmethod
def run(cls, settings: Settings, settings_info: SettingsInfoModel) -> list[Path]:
def run(cls, settings: Settings, *settings_info: SettingsInfoModel) -> list[Path]:
"""Run the generator.
:param settings: The settings for the generator.
:param settings_info: The settings info to generate documentation for.
:return: The list of file paths is written to.
"""
generator = cls(settings)
result = generator.generate(settings_info)
result = generator.generate(*settings_info)
file_paths = generator.file_paths()
updated_files: list[Path] = []
for path in file_paths:
Expand Down

0 comments on commit b384e12

Please sign in to comment.