Skip to content

Commit

Permalink
Merge pull request #244 from python-wheel-build/mypy-settings.py
Browse files Browse the repository at this point in the history
Fix mypy errors in settings.py
  • Loading branch information
tiran authored Jul 27, 2024
2 parents 6d7a706 + 635d673 commit 990962c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fromager/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import pathlib
import typing

import yaml

Expand All @@ -9,7 +10,7 @@


class Settings:
def __init__(self, data: dict):
def __init__(self, data: dict[typing.Any, typing.Any]):
self._data = data

def pre_built(self, variant: str) -> set[str]:
Expand Down Expand Up @@ -90,4 +91,4 @@ def load(filename: pathlib.Path) -> Settings:
return Settings({})
with open(filepath, "r") as f:
logger.info("loading settings from %s", filepath.absolute())
return _parse(f)
return _parse(f.read())

0 comments on commit 990962c

Please sign in to comment.