Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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.
  • Loading branch information
robbiemu committed May 19, 2025
commit 2f3854cfc69a1b9af2109339c6838d6b2e5ee5dd
2 changes: 0 additions & 2 deletions gguf-py/gguf/quants.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# pyright: reportInvalidTypeForm=false

from __future__ import annotations
from abc import ABC, abstractmethod
from typing import Any, Callable, Sequence
Expand Down
8 changes: 6 additions & 2 deletions pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extraPaths": ["gguf-py"],
"pythonVersion": "3.9",
"pythonVersion": "3.10",
"pythonPlatform": "All",
"reportUnusedImport": "warning",
"reportDuplicateImport": "error",
Expand All @@ -11,12 +11,16 @@
{
// TODO: make this version override work correctly
"root": "gguf-py",
"pythonVersion": "3.8",
"pythonVersion": "3.10",
},
{
// uses match expressions in steps.py
"root": "tools/server/tests",
"pythonVersion": "3.10",
},
],
"exclude": [
"tools/legacy",
"tests"
]
}
Loading