Skip to content

Commit 2f3854c

Browse files
committed
Updates pyright configuration
Updates the pyright configuration to use Python 3.10. This ensures compatibility with newer language features and libraries. It also excludes the 'tools/legacy' and 'tests' directories from analysis.
1 parent 4cfda13 commit 2f3854c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

gguf-py/gguf/quants.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
from __future__ import annotations
42
from abc import ABC, abstractmethod
53
from typing import Any, Callable, Sequence

pyrightconfig.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extraPaths": ["gguf-py"],
3-
"pythonVersion": "3.9",
3+
"pythonVersion": "3.10",
44
"pythonPlatform": "All",
55
"reportUnusedImport": "warning",
66
"reportDuplicateImport": "error",
@@ -11,12 +11,16 @@
1111
{
1212
// TODO: make this version override work correctly
1313
"root": "gguf-py",
14-
"pythonVersion": "3.8",
14+
"pythonVersion": "3.10",
1515
},
1616
{
1717
// uses match expressions in steps.py
1818
"root": "tools/server/tests",
1919
"pythonVersion": "3.10",
2020
},
2121
],
22+
"exclude": [
23+
"tools/legacy",
24+
"tests"
25+
]
2226
}

0 commit comments

Comments
 (0)