diff options
author | Cebtenzzre <cebtenzzre@gmail.com> | 2023-08-31 01:02:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-31 08:02:23 +0300 |
commit | 92d0b751a77a089e650983e9f1564ef4d31b32b9 (patch) | |
tree | 28beced44af777ec563f489518a14509994187dd /mypy.ini | |
parent | 8afe2280009ecbfc9de2c93b8f41283dc810609a (diff) |
convert : fix python 3.8 support, modernize type annotations (#2916)
* convert : fix python 3.8 support
* convert : sort imports
* convert : fix required parameters in convert-llama-ggmlv3-to-gguf
* convert : fix mypy errors in convert-llama-ggmlv3-to-gguf
* convert : use PEP 585 generics and PEP 604 unions
Now that we have `from __future__ import annotations`, we can use this
modern syntax in Python 3.7 instead of restricting support to Python 3.9
or 3.10 respectively.
* gguf.py : a tuple is already a tuple
* add mypy.ini
* convert : add necessary `type: ignore` comments
* gguf-py: bump version
Diffstat (limited to 'mypy.ini')
-rw-r--r-- | mypy.ini | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 00000000..55c168f2 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,5 @@ +[mypy] +strict = true +allow_untyped_calls = true +allow_untyped_defs = true +allow_incomplete_defs = true |