feat: CMA P1+P2 Round1 — 成本法对比+杜邦分析+本量利

This commit is contained in:
Hermes CI Fix
2026-07-16 16:39:24 +08:00
parent 46fa811d52
commit 4b25f46124
8728 changed files with 1772671 additions and 151 deletions
@@ -0,0 +1,31 @@
from numpy._core.defchararray import __all__, __doc__
__DEPRECATED = frozenset({"chararray", "array", "asarray"})
def __getattr__(name: str):
if name in __DEPRECATED:
# Deprecated in NumPy 2.5, 2026-01-07
import warnings
warnings.warn(
(
"The chararray class is deprecated and will be removed in a future "
"release. Use an ndarray with a string or bytes dtype instead."
),
DeprecationWarning,
stacklevel=2,
)
import numpy._core.defchararray as char
if (export := getattr(char, name, None)) is not None:
return export
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
def __dir__() -> list[str]:
import numpy._core.defchararray as char
return dir(char)
@@ -0,0 +1,111 @@
from numpy._core.defchararray import ( # type: ignore[deprecated]
add,
array,
asarray,
capitalize,
center,
chararray, # pyrefly: ignore[deprecated]
compare_chararrays,
count,
decode,
encode,
endswith,
equal,
expandtabs,
find,
greater,
greater_equal,
index,
isalnum,
isalpha,
isdecimal,
isdigit,
islower,
isnumeric,
isspace,
istitle,
isupper,
join,
less,
less_equal,
ljust,
lower,
lstrip,
mod,
multiply,
not_equal,
partition,
replace,
rfind,
rindex,
rjust,
rpartition,
rsplit,
rstrip,
split,
splitlines,
startswith,
str_len,
strip,
swapcase,
title,
translate,
upper,
zfill,
)
__all__ = [
"equal",
"not_equal",
"greater_equal",
"less_equal",
"greater",
"less",
"str_len",
"add",
"multiply",
"mod",
"capitalize",
"center",
"count",
"decode",
"encode",
"endswith",
"expandtabs",
"find",
"index",
"isalnum",
"isalpha",
"isdigit",
"islower",
"isspace",
"istitle",
"isupper",
"join",
"ljust",
"lower",
"lstrip",
"partition",
"replace",
"rfind",
"rindex",
"rjust",
"rpartition",
"rsplit",
"rstrip",
"split",
"splitlines",
"startswith",
"strip",
"swapcase",
"title",
"translate",
"upper",
"zfill",
"isnumeric",
"isdecimal",
"array",
"asarray",
"compare_chararrays",
"chararray",
]