From 0a95c79d8b010b8f9e0368409fa2db2e65cb3e40 Mon Sep 17 00:00:00 2001 From: Jerome Kieffer Date: Tue, 7 Jan 2025 17:36:56 +0100 Subject: [PATCH] Flake8 dislikes this kind of typing. Typing is not my business --- src/pyFAI/io/integration_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyFAI/io/integration_config.py b/src/pyFAI/io/integration_config.py index b9e3b0874..4e3b2dc5f 100644 --- a/src/pyFAI/io/integration_config.py +++ b/src/pyFAI/io/integration_config.py @@ -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())