Skip to content

Commit 1d7b9b4

Browse files
authored
[quality] Fix mypy (#2003)
1 parent 0b68122 commit 1d7b9b4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
3+
rev: v6.0.0
44
hooks:
55
- id: check-ast
66
- id: check-yaml
@@ -16,7 +16,7 @@ repos:
1616
- id: no-commit-to-branch
1717
args: ['--branch', 'main']
1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.12.4
19+
rev: v0.12.8
2020
hooks:
2121
- id: ruff
2222
args: [ --fix ]

doctr/models/detection/zoo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def _predictor(arch: Any, pretrained: bool, assume_straight_pages: bool = True,
5050
raise ValueError(f"unknown architecture: {type(arch)}")
5151

5252
_model = arch
53-
_model.assume_straight_pages = assume_straight_pages # type: ignore[attr-defined]
54-
_model.postprocessor.assume_straight_pages = assume_straight_pages # type: ignore[attr-defined]
53+
_model.assume_straight_pages = assume_straight_pages
54+
_model.postprocessor.assume_straight_pages = assume_straight_pages
5555

5656
kwargs.pop("pretrained_backbone", None)
5757

0 commit comments

Comments
 (0)