Skip to content

Commit b0c05ef

Browse files
committed
chore(deps): upgrade pyright to 1.1.347
1 parent 802674d commit b0c05ef

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ optional = true
3636

3737
[tool.poetry.group.dev.dependencies]
3838
pytest = "^7.4.4"
39-
pyright = "^1.1.307"
39+
pyright = "^1.1.347"
4040
pre-commit = "^2.15.0"
4141
pytest-cov = "^3.0.0"
4242
ruff = "^0.0.259"
@@ -157,6 +157,7 @@ exclude = ["unblob/testing.py"]
157157

158158
[tool.pyright]
159159
exclude = ["build"]
160+
typeCheckingMode = "basic"
160161

161162
[build-system]
162163
requires = ["poetry-core>=1.0.0"]

tests/test_finder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def on_match(m, pattern_id, start, end):
8282
m.append((pattern_id, start, end))
8383
return Scan.Continue
8484

85-
db.build(matches, on_match).scan(b"A123456789BB")
85+
db.build(matches, on_match).scan(b"A123456789BB") # type: ignore
8686

8787
assert len(matches) == 2
8888
assert matches[0][1] == 0

unblob/finder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def search_chunks(
150150
start_offset=0,
151151
)
152152

153-
scanner = hyperscan_db.build(hyperscan_context, _hyperscan_match)
153+
scanner = hyperscan_db.build(hyperscan_context, _hyperscan_match) # type: ignore
154154

155155
try:
156156
stream_scan_chunks(scanner, file, hyperscan_context)

unblob/handlers/archive/qnap/qnap_nas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def calculate_chunk(self, file: File, start_offset: int) -> Optional[ValidChunk]
116116
context = QTSSearchContext(start_offset=start_offset, file=file, end_offset=-1)
117117

118118
try:
119-
scanner = hyperscan_stream_end_magic_db.build(context, _hyperscan_match)
119+
scanner = hyperscan_stream_end_magic_db.build(context, _hyperscan_match) # type: ignore
120120
stream_scan(scanner, file)
121121
except Exception as e:
122122
logger.debug(

unblob/handlers/compression/bzip2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def calculate_chunk(self, file: File, start_offset: int) -> Optional[ValidChunk]
140140
)
141141

142142
try:
143-
scanner = hyperscan_stream_end_magic_db.build(context, _hyperscan_match)
143+
scanner = hyperscan_stream_end_magic_db.build(context, _hyperscan_match) # type: ignore
144144
stream_scan(scanner, file)
145145
except Exception as e:
146146
logger.debug(

unblob/handlers/compression/xz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def calculate_chunk(self, file: File, start_offset: int) -> Optional[ValidChunk]
182182
)
183183

184184
try:
185-
scanner = hyperscan_stream_end_magic_db.build(context, _hyperscan_match)
185+
scanner = hyperscan_stream_end_magic_db.build(context, _hyperscan_match) # type: ignore
186186
stream_scan(scanner, file)
187187
except Exception as e:
188188
logger.debug(

0 commit comments

Comments
 (0)