[+] add .whl
1. fix type errors; 2. release new .whl;
This commit is contained in:
parent
f28b01e498
commit
794b86d90e
@ -156,7 +156,7 @@ class CLI(_cli.CLI):
|
|||||||
project_name=options.project,
|
project_name=options.project,
|
||||||
argv=args,
|
argv=args,
|
||||||
output_dir=options.output_dir,
|
output_dir=options.output_dir,
|
||||||
mypy=True,
|
# mypy=True,
|
||||||
ruff=True,
|
ruff=True,
|
||||||
pyright=True,
|
pyright=True,
|
||||||
)
|
)
|
||||||
|
@ -5,7 +5,7 @@ project(
|
|||||||
).stdout().strip('\n'),
|
).stdout().strip('\n'),
|
||||||
# 'online.fxreader.uv',
|
# 'online.fxreader.uv',
|
||||||
# ['c', 'cpp'],
|
# ['c', 'cpp'],
|
||||||
version: '0.1.5.16+27.21',
|
version: '0.1.5.17',
|
||||||
# default_options: [
|
# default_options: [
|
||||||
# 'cpp_std=c++23',
|
# 'cpp_std=c++23',
|
||||||
# # 'prefer_static=true',
|
# # 'prefer_static=true',
|
||||||
|
@ -9,6 +9,7 @@ import sys
|
|||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
|
import typing
|
||||||
|
|
||||||
|
|
||||||
from typing import (
|
from typing import (
|
||||||
@ -97,7 +98,15 @@ def check_dict(
|
|||||||
assert isinstance(value, dict)
|
assert isinstance(value, dict)
|
||||||
value2 = cast(dict[Any, Any], value)
|
value2 = cast(dict[Any, Any], value)
|
||||||
|
|
||||||
assert all([isinstance(k, KT) and (VT is None or isinstance(v, VT)) for k, v in value2.items()])
|
VT_class: Optional[type[Any]] = None
|
||||||
|
|
||||||
|
if not VT is None:
|
||||||
|
if not typing.get_origin(VT) is None:
|
||||||
|
VT_class = cast(type[Any], typing.get_origin(VT))
|
||||||
|
else:
|
||||||
|
VT_class = VT
|
||||||
|
|
||||||
|
assert all([isinstance(k, KT) and (VT_class is None or isinstance(v, VT_class)) for k, v in value2.items()])
|
||||||
|
|
||||||
if VT is None:
|
if VT is None:
|
||||||
return cast(
|
return cast(
|
||||||
|
Loading…
Reference in New Issue
Block a user