Files
douyin_guaji-main/pyright_output.txt
T
Your Name 478ae69052 chore: Clean up blank lines and enhance code organization
- Removed excessive blank lines from multiple Python scripts and configuration files to improve readability and maintainability.
- Ensured consistent formatting across the project, contributing to a more organized codebase.
- Added new files for testing and analysis, including `test_screenshot_error_handling.py` and `test_screenshot_reuse_optimization.py`, to improve testing coverage and functionality.
2026-01-01 10:04:32 +08:00

79 lines
26 KiB
Plaintext

c:\Users\12742\Desktop\douyin_guaji-main\douyin\core\douyin_fudai.py
c:\Users\12742\Desktop\douyin_guaji-main\douyin\core\douyin_fudai.py:459:16 - error: 鏈畾涔夆€渟creenshot_service_stopped鈥?(reportUndefinedVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\fudai\core\fudai_attend.py
c:\Users\12742\Desktop\douyin_guaji-main\douyin\fudai\core\fudai_attend.py:1373:19 - error: 鈥渁ttend_button_text鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\logging\douyin_logging_wrapper.py
c:\Users\12742\Desktop\douyin_guaji-main\douyin\logging\douyin_logging_wrapper.py:24:31 - error: 绫诲瀷鈥渢ype[douyin.logging.error_logger.ErrorLogger]鈥濅笉鍙垎閰嶇粰澹版槑鐨勭被鍨嬧€渢ype[douyin.logging.douyin_logging_wrapper.ErrorLogger]鈥? 聽聽鈥渄ouyin.logging.error_logger.ErrorLogger鈥濅笉鍙垎閰嶇粰鈥渄ouyin.logging.douyin_logging_wrapper.ErrorLogger鈥? 聽聽绫诲瀷鈥渢ype[douyin.logging.error_logger.ErrorLogger]鈥濅笉鍙垎閰嶇粰绫诲瀷鈥渢ype[douyin.logging.douyin_logging_wrapper.ErrorLogger]鈥?(reportAssignmentType)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\logging\douyin_logging_wrapper.py:25:31 - error: 绫诲瀷鈥渢ype[douyin.logging.debug_logger.DebugLogger]鈥濅笉鍙垎閰嶇粰澹版槑鐨勭被鍨嬧€渢ype[douyin.logging.douyin_logging_wrapper.DebugLogger]鈥? 聽聽鈥渄ouyin.logging.debug_logger.DebugLogger鈥濅笉鍙垎閰嶇粰鈥渄ouyin.logging.douyin_logging_wrapper.DebugLogger鈥? 聽聽绫诲瀷鈥渢ype[douyin.logging.debug_logger.DebugLogger]鈥濅笉鍙垎閰嶇粰绫诲瀷鈥渢ype[douyin.logging.douyin_logging_wrapper.DebugLogger]鈥?(reportAssignmentType)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\logging\douyin_logging_wrapper.py:26:32 - error: 绫诲瀷鈥渢ype[douyin.logging.action_logger.ActionLogger]鈥濅笉鍙垎閰嶇粰澹版槑鐨勭被鍨嬧€渢ype[douyin.logging.douyin_logging_wrapper.ActionLogger]鈥? 聽聽鈥渄ouyin.logging.action_logger.ActionLogger鈥濅笉鍙垎閰嶇粰鈥渄ouyin.logging.douyin_logging_wrapper.ActionLogger鈥? 聽聽绫诲瀷鈥渢ype[douyin.logging.action_logger.ActionLogger]鈥濅笉鍙垎閰嶇粰绫诲瀷鈥渢ype[douyin.logging.douyin_logging_wrapper.ActionLogger]鈥?(reportAssignmentType)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\logging\douyin_logging_wrapper.py:27:38 - error: 绫诲瀷鈥渢ype[douyin.logging.performance_tracker.PerformanceTracker]鈥濅笉鍙垎閰嶇粰澹版槑鐨勭被鍨嬧€渢ype[douyin.logging.douyin_logging_wrapper.PerformanceTracker]鈥? 聽聽鈥渄ouyin.logging.performance_tracker.PerformanceTracker鈥濅笉鍙垎閰嶇粰鈥渄ouyin.logging.douyin_logging_wrapper.PerformanceTracker鈥? 聽聽绫诲瀷鈥渢ype[douyin.logging.performance_tracker.PerformanceTracker]鈥濅笉鍙垎閰嶇粰绫诲瀷鈥渢ype[douyin.logging.douyin_logging_wrapper.PerformanceTracker]鈥?(reportAssignmentType)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\logging\douyin_logging_wrapper.py:569:35 - error: 鏃犳硶璁块棶绫烩€淓rrorLogger鈥濈殑灞炴€р€渓og_exception鈥? 聽聽灞炴€р€渓og_exception鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\logging\douyin_logging_wrapper.py:675:31 - error: 鏃犳硶璁块棶绫烩€淓rrorLogger鈥濈殑灞炴€р€渓og_exception鈥? 聽聽灞炴€р€渓og_exception鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\logging\douyin_logging_wrapper.py:697:38 - error: 鏃犳硶璁块棶绫烩€淧erformanceTracker鈥濈殑灞炴€р€渆nd_timer鈥? 聽聽灞炴€р€渆nd_timer鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\logging\douyin_logging_wrapper.py:704:32 - error: 鏃犳硶璁块棶绫烩€淎ctionLogger鈥濈殑灞炴€р€渓og_step鈥? 聽聽灞炴€р€渓og_step鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\logging\douyin_logging_wrapper.py:727:31 - error: 鏃犳硶璁块棶绫烩€淒ebugLogger鈥濈殑灞炴€р€渓og_variable鈥? 聽聽灞炴€р€渓og_variable鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\logging\douyin_logging_wrapper.py:729:35 - error: 鏃犳硶璁块棶绫烩€淒ebugLogger鈥濈殑灞炴€р€渓og_variable鈥? 聽聽灞炴€р€渓og_variable鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\logging\douyin_logging_wrapper.py:743:45 - error: 鏃犳硶璁块棶绫烩€淧erformanceTracker鈥濈殑灞炴€р€済et_statistics鈥? 聽聽灞炴€р€済et_statistics鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\reservation\douyin_reservation_logic.py
c:\Users\12742\Desktop\douyin_guaji-main\douyin\reservation\douyin_reservation_logic.py:25:9 - error: 绫诲瀷鈥?write_callback: () -> None, analyser: Any | None = None, context: Dict[str, Any] | None = None) -> bool鈥濅笉鍙垎閰嶇粰澹版槑鐨勭被鍨嬧€?...) -> None鈥? 聽聽绫诲瀷鈥?write_callback: () -> None, analyser: Any | None = None, context: Dict[str, Any] | None = None) -> bool鈥濅笉鍙垎閰嶇粰绫诲瀷鈥?...) -> None鈥? 聽聽聽聽鍑芥暟杩斿洖绫诲瀷"bool"涓庣被鍨?None"涓嶅吋瀹? 聽聽聽聽聽聽鈥渂ool鈥濅笉鍙垎閰嶇粰鈥淣one鈥?(reportAssignmentType)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\reservation\douyin_reservation_logic.py:27:9 - error: 绫诲瀷鈥?item: ReservationItem) -> Tuple[bool, str | None]鈥濅笉鍙垎閰嶇粰澹版槑鐨勭被鍨嬧€?...) -> Literal[True]鈥? 聽聽绫诲瀷鈥?item: ReservationItem) -> Tuple[bool, str | None]鈥濅笉鍙垎閰嶇粰绫诲瀷鈥?...) -> Literal[True]鈥? 聽聽聽聽鍑芥暟杩斿洖绫诲瀷"Tuple[bool, str | None]"涓庣被鍨?Literal[True]"涓嶅吋瀹? 聽聽聽聽聽聽鈥淭uple[bool, str | None]鈥濅笉鍙垎閰嶇粰鈥淟iteral[True]鈥?(reportAssignmentType)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage.py
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage.py:378:50 - error: 鈥渙cr_start鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:461:69 - error: 鈥渢pl_binary_adaptive_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:462:65 - error: 鈥渢pl_binary_otsu_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:463:59 - error: 鈥渢pl_edges_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:464:70 - error: 鈥渢pl_edges_aggressive_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:465:65 - error: 鈥渢pl_edges_morph_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:481:59 - error: 鈥渞oi_binary_adaptive_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:481:87 - error: 鈥渢pl_binary_adaptive_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:488:55 - error: 鈥渞oi_binary_otsu_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:488:79 - error: 鈥渢pl_binary_otsu_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:495:56 - error: 鈥渞oi_edges_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:495:74 - error: 鈥渢pl_edges_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:502:60 - error: 鈥渞oi_edges_aggressive_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:502:89 - error: 鈥渢pl_edges_aggressive_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:509:56 - error: 鈥渞oi_edges_morph_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:509:80 - error: 鈥渢pl_edges_morph_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:516:59 - error: 鈥渞oi_contrast_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\douyin\stage\douyin_stage_handler.py:516:80 - error: 鈥渢pl_contrast_backup鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\gui\components\error_log_viewer.py
c:\Users\12742\Desktop\douyin_guaji-main\gui\components\error_log_viewer.py:12:29 - error: 绫诲瀷鈥?) -> str鈥濅笉鍙垎閰嶇粰澹版槑鐨勭被鍨嬧€?) -> Literal['logs/error.log']鈥? 聽聽绫诲瀷鈥?) -> str鈥濅笉鍙垎閰嶇粰绫诲瀷鈥?) -> Literal['logs/error.log']鈥? 聽聽聽聽鍑芥暟杩斿洖绫诲瀷"str"涓庣被鍨?Literal['logs/error.log']"涓嶅吋瀹? 聽聽聽聽聽聽鈥渟tr鈥濅笉鍙垎閰嶇粰绫诲瀷鈥淟iteral['logs/error.log']鈥?(reportAssignmentType)
c:\Users\12742\Desktop\douyin_guaji-main\gui\components\log_viewer.py
c:\Users\12742\Desktop\douyin_guaji-main\gui\components\log_viewer.py:38:10 - error: 鏃犳硶瑙f瀽瀵煎叆鈥渃onfig.config_manager鈥?(reportMissingImports)
c:\Users\12742\Desktop\douyin_guaji-main\gui\components\log_viewer.py:227:20 - error: 鈥渂eautify_log_output鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\gui\components\log_viewer.py:370:20 - error: 鈥渂eautify_log_output鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\test_ocr_multithread_performance.py
c:\Users\12742\Desktop\douyin_guaji-main\test_ocr_multithread_performance.py:195:27 - error: 鈥渆fficiency鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\test_screenshot_service_fix.py
c:\Users\12742\Desktop\douyin_guaji-main\test_screenshot_service_fix.py:19:42 - error: 鈥渁nalyser鈥濇槸鏈煡鐨勫鍏ョ鍙?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\test_screenshot_service_ocr_simple.py
c:\Users\12742\Desktop\douyin_guaji-main\test_screenshot_service_ocr_simple.py:63:33 - error: 鈥渞ead_fudai_detail_once鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\test_screenshot_service_ocr_stop.py
c:\Users\12742\Desktop\douyin_guaji-main\test_screenshot_service_ocr_stop.py:72:33 - error: 鈥渟tart_time鈥濆彲鑳芥湭缁戝畾 (reportPossiblyUnboundVariable)
c:\Users\12742\Desktop\douyin_guaji-main\tools\analyze_optimization_effect.py
c:\Users\12742\Desktop\douyin_guaji-main\tools\analyze_optimization_effect.py:14:24 - error: 鏃犳硶璁块棶绫烩€淭extIO鈥濈殑灞炴€р€渞econfigure鈥? 聽聽灞炴€р€渞econfigure鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\tools\analyze_screenshot_logs.py
c:\Users\12742\Desktop\douyin_guaji-main\tools\analyze_screenshot_logs.py:15:24 - error: 鏃犳硶璁块棶绫烩€淭extIO鈥濈殑灞炴€р€渞econfigure鈥? 聽聽灞炴€р€渞econfigure鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\tools\check_screenshot_optimization.py
c:\Users\12742\Desktop\douyin_guaji-main\tools\check_screenshot_optimization.py:15:24 - error: 鏃犳硶璁块棶绫烩€淭extIO鈥濈殑灞炴€р€渞econfigure鈥? 聽聽灞炴€р€渞econfigure鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\tools\check_system_config.py
c:\Users\12742\Desktop\douyin_guaji-main\tools\check_system_config.py:14:24 - error: 鏃犳硶璁块棶绫烩€淭extIO鈥濈殑灞炴€р€渞econfigure鈥? 聽聽灞炴€р€渞econfigure鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\tools\pick_coords.py
c:\Users\12742\Desktop\douyin_guaji-main\tools\pick_coords.py:15:10 - error: 鏃犳硶瑙f瀽瀵煎叆鈥渢kinterdnd2鈥?(reportMissingImports)
c:\Users\12742\Desktop\douyin_guaji-main\tools\pick_coords.py:121:23 - error: 鏃犳硶璁块棶绫烩€淭k鈥濈殑灞炴€р€渄rop_target_register鈥? 聽聽灞炴€р€渄rop_target_register鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\tools\pick_coords.py:122:23 - error: 鏃犳硶璁块棶绫烩€淭k鈥濈殑灞炴€р€渄nd_bind鈥? 聽聽灞炴€р€渄nd_bind鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\tools\pick_coords.py:123:25 - error: 鏃犳硶璁块棶绫烩€淐anvas鈥濈殑灞炴€р€渄rop_target_register鈥? 聽聽灞炴€р€渄rop_target_register鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\tools\pick_coords.py:124:25 - error: 鏃犳硶璁块棶绫烩€淐anvas鈥濈殑灞炴€р€渄nd_bind鈥? 聽聽灞炴€р€渄nd_bind鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\tools\pick_coords.py:125:24 - error: 鏃犳硶璁块棶绫烩€淟abel鈥濈殑灞炴€р€渄rop_target_register鈥? 聽聽灞炴€р€渄rop_target_register鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\tools\pick_coords.py:126:24 - error: 鏃犳硶璁块棶绫烩€淟abel鈥濈殑灞炴€р€渄nd_bind鈥? 聽聽灞炴€р€渄nd_bind鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\tools\pick_coords.py:451:31 - error: 鏃犳硶涓虹被鈥淐anvas鈥濈殑灞炴€р€渋mage鈥濊祴鍊笺€? 聽聽灞炴€р€渋mage鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\tools\region_selector.py
c:\Users\12742\Desktop\douyin_guaji-main\tools\region_selector.py:186:23 - error: 鏃犳硶璁块棶绫烩€淭k鈥濈殑灞炴€р€渄rop_target_register鈥? 聽聽灞炴€р€渄rop_target_register鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\tools\region_selector.py:187:23 - error: 鏃犳硶璁块棶绫烩€淭k鈥濈殑灞炴€р€渄nd_bind鈥? 聽聽灞炴€р€渄nd_bind鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\tools\region_selector.py:188:25 - error: 鏃犳硶璁块棶绫烩€淐anvas鈥濈殑灞炴€р€渄rop_target_register鈥? 聽聽灞炴€р€渄rop_target_register鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\tools\region_selector.py:189:25 - error: 鏃犳硶璁块棶绫烩€淐anvas鈥濈殑灞炴€р€渄nd_bind鈥? 聽聽灞炴€р€渄nd_bind鈥濇湭鐭?(reportAttributeAccessIssue)
c:\Users\12742\Desktop\douyin_guaji-main\tools\simple_region_selector.py
c:\Users\12742\Desktop\douyin_guaji-main\tools\simple_region_selector.py:479:36 - error: 鏃犳硶璁块棶绫烩€淐anvas鈥濈殑灞炴€р€渉鈥? 聽聽灞炴€р€渉鈥濇湭鐭?(reportAttributeAccessIssue)
58 errors, 0 warnings, 0 informations