[PR #25268] fix: resolve typing errors in configs module #30987

Closed
opened 2026-02-21 20:48:36 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/25268

State: closed
Merged: Yes


Summary

Fixes typing errors throughout the configs module to improve type safety and code quality.

Related Issues

Fixes #25267

Changes

Middleware Configuration

  • Fixed inheritance issue in MiddlewareConfig by removing duplicate DatabaseConfig inheritance
  • Changed ClickzettaConfig and MatrixoneConfig from BaseModel to BaseSettings for proper Pydantic configuration

Remote Settings Sources

  • Added comprehensive type hints to Apollo client and utilities
  • Added type annotations to Nacos HTTP client and utilities
  • Fixed function signatures and return types throughout

Project Configuration

  • Updated pyrightconfig.json to enable type checking for the configs directory
  • Fixed import issues in packaging module

Notes

All changes maintain backward compatibility while improving type safety.

**Original Pull Request:** https://github.com/langgenius/dify/pull/25268 **State:** closed **Merged:** Yes --- ## Summary Fixes typing errors throughout the configs module to improve type safety and code quality. ## Related Issues Fixes #25267 ## Changes ### Middleware Configuration - Fixed inheritance issue in MiddlewareConfig by removing duplicate DatabaseConfig inheritance - Changed ClickzettaConfig and MatrixoneConfig from BaseModel to BaseSettings for proper Pydantic configuration ### Remote Settings Sources - Added comprehensive type hints to Apollo client and utilities - Added type annotations to Nacos HTTP client and utilities - Fixed function signatures and return types throughout ### Project Configuration - Updated pyrightconfig.json to enable type checking for the configs directory - Fixed import issues in packaging module ## Notes All changes maintain backward compatibility while improving type safety.
yindo added the pull-request label 2026-02-21 20:48:36 -05:00
yindo closed this issue 2026-02-21 20:48:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#30987