Skip to content

Commit

Permalink
Flake8 dislikes this kind of typing.
Browse files Browse the repository at this point in the history
Typing is not my business
  • Loading branch information
kif committed Jan 7, 2025
1 parent 0c4615d commit 0a95c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyFAI/io/integration_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def save(self, filename):
w.write(json.dumps(self.as_dict(), indent=2))

@classmethod
def from_file(cls, filename: str) -> WorkerConfig:
def from_file(cls, filename: str):
"""load the content of a JSON file and provide a dataclass instance"""
with open(filename, "r") as f:
dico = json.loads(f.read())
Expand Down

0 comments on commit 0a95c79

Please sign in to comment.