Skip to content

Commit

Permalink
satisfy mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman-saimbhi committed Dec 12, 2024
1 parent 6a25c1f commit 92dda27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/routing/route_studies.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def route_studies(pending_series: Dict[str, float]) -> None:
studies_ready = {}
with os.scandir(config.mercure.studies_folder) as it:
if isinstance(it,pyfakefs.fake_scandir.ScanDirIter):
it = list(it) # prevent pyfakefs issue
# prevent pyfakefs issue
it = list(it) # type: ignore
for entry in it:
if entry.is_dir() and not is_study_locked(entry.path):
if is_study_complete(entry.path, pending_series):
Expand Down

0 comments on commit 92dda27

Please sign in to comment.