- Removed trailing whitespace and ensured files end with a single newline in cleanup_unused_files.py. - Added fix_trailing_whitespace.py to batch remove trailing whitespace from Python files. - Updated install_dependencies.py to improve dependency installation prompts. - Cleaned up pick_coords.py by removing unnecessary whitespace and improving code readability. - Enhanced region_selector.py by disabling specific pylint checks for better compatibility with third-party libraries. - Improved WPS流程图生成工具.py by cleaning up whitespace and enhancing readability. - Updated __init__.py in typings to remove unnecessary lines. - Modified app.js to adjust default configuration values and clean up unused code.
18 lines
337 B
Python
18 lines
337 B
Python
from __future__ import annotations
|
|
|
|
"""
|
|
福袋详情工具函数模块
|
|
====================
|
|
|
|
提供通用的工具函数。
|
|
"""
|
|
|
|
|
|
def is_abnormal_time_value(v: float) -> bool:
|
|
"""Shim: treat clearly invalid time values as abnormal."""
|
|
if v <= 0:
|
|
return True
|
|
if v > 24 * 3600 * 7:
|
|
return True
|
|
return False
|