Skip to content

Commit

Permalink
fix: ran pyupgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
rwxd committed Mar 11, 2023
1 parent af64483 commit 4d5b47e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipams/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ def parse_config(config: Path) -> Config:
if not config.exists():
raise FileNotFoundError(f'Config file {config} does not exist')
if config.suffix in ['.yaml', '.yml']:
with open(config, 'r') as f:
with open(config) as f:
return Config.parse_obj(yaml.safe_load(f))
return Config.parse_file(config)

0 comments on commit 4d5b47e

Please sign in to comment.