[+] 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,
|
||||
argv=args,
|
||||
output_dir=options.output_dir,
|
||||
mypy=True,
|
||||
# mypy=True,
|
||||
ruff=True,
|
||||
pyright=True,
|
||||
)
|
||||
|
@ -5,7 +5,7 @@ project(
|
||||
).stdout().strip('\n'),
|
||||
# 'online.fxreader.uv',
|
||||
# ['c', 'cpp'],
|
||||
version: '0.1.5.16+27.21',
|
||||
version: '0.1.5.17',
|
||||
# default_options: [
|
||||
# 'cpp_std=c++23',
|
||||
# # 'prefer_static=true',
|
||||
|
@ -9,6 +9,7 @@ import sys
|
||||
import subprocess
|
||||
import os
|
||||
import logging
|
||||
import typing
|
||||
|
||||
|
||||
from typing import (
|
||||
@ -97,7 +98,15 @@ def check_dict(
|
||||
assert isinstance(value, dict)
|
||||
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:
|
||||
return cast(
|
||||
|
Loading…
Reference in New Issue
Block a user