Skip to content

Commit

Permalink
Style: rename parse to load
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanofusai committed Sep 30, 2024
1 parent 89e29df commit edd32a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yaml_cfg/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class YAMLConfig:
# Public methods

@classmethod
def parse(cls, path: str, *, schema: type[BaseModel]) -> BaseModel:
def load(cls, path: str, *, schema: type[BaseModel]) -> BaseModel:
"""Create a Pydantic configuration object from a YAML file.
:param path: The path to the YAML file
Expand Down

0 comments on commit edd32a8

Please sign in to comment.