diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e53b94d91..6676b6717 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: debug-statements - id: mixed-line-ending - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.14 + rev: v0.15.0 hooks: - id: ruff-check - id: ruff-format diff --git a/package/PartSeg/_roi_mask/batch_proceed.py b/package/PartSeg/_roi_mask/batch_proceed.py index ee4b8c1f0..7eca23ad1 100644 --- a/package/PartSeg/_roi_mask/batch_proceed.py +++ b/package/PartSeg/_roi_mask/batch_proceed.py @@ -35,7 +35,7 @@ class BatchProceed(QThread): def __init__(self): super().__init__() self.queue = Queue() - self.algorithm = Optional[None] + self.algorithm = None self.parameters = None self.file_list = [] self.index = 0