Skip to content

Commit 6ee8253

Browse files
committed
Configures pyright to ignore invalid type forms
Temporarily disables `reportInvalidTypeForm` in pyright configuration due to ongoing transition to the new type system in numpy 2.2.x.
1 parent afd66e9 commit 6ee8253

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

gguf-py/gguf/gguf_reader.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# pyright: reportInvalidTypeForm=false
2-
#
31
# GGUF file reading/modification support. For API usage information,
42
# please see the files scripts/ for some fairly simple examples.
53
#

pyrightconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extraPaths": ["gguf-py"],
33
"pythonVersion": "3.10",
44
"pythonPlatform": "All",
5+
"reportInvalidTypeForm": false, // TODO: remove once numpy 2.2.x resolves the transition to their new type system
56
"reportUnusedImport": "warning",
67
"reportDuplicateImport": "error",
78
"reportDeprecated": "warning",

0 commit comments

Comments
 (0)