[Docs] Fix warnings in mkdocs build (continued) (#25042)

Signed-off-by: wwl2755 <wangwenlong2755@gmail.com>
This commit is contained in:
Wenlong Wang
2025-09-20 11:45:18 +00:00
committed by GitHub
parent e08a3a3fdb
commit 032d661d27
7 changed files with 24 additions and 15 deletions
+3 -3
View File
@@ -3216,7 +3216,7 @@ def cprofile_context(save_file: Optional[str] = None):
Args:
save_file: path to save the profile result. "1" or
None will result in printing to stdout.
None will result in printing to stdout.
"""
import cProfile
@@ -3273,7 +3273,7 @@ def check_use_alibi(model_config: ModelConfig) -> bool:
and getattr(cfg.attn_config, "alibi", False)))))
def sha256(input) -> bytes:
def sha256(input: Any) -> bytes:
"""Hash any picklable Python object using SHA-256.
The input is serialized using pickle before hashing, which allows
@@ -3290,7 +3290,7 @@ def sha256(input) -> bytes:
return hashlib.sha256(input_bytes).digest()
def sha256_cbor(input) -> bytes:
def sha256_cbor(input: Any) -> bytes:
"""
Hash objects using CBOR serialization and SHA-256.