eosphoros-ai / DB-GPT

AI Native Data App Development framework with AWEL(Agentic Workflow Expression Language) and Agents
http://docs.dbgpt.cn
MIT License
13.75k stars 1.86k forks source link

fix: replace deprecated method and add missing decorator #2072

Closed nightosong closed 1 month ago

nightosong commented 1 month ago

Description

Changes:

  1. method parse_obj is deprecated, use model_validate instead.
  2. remove meaningless f-string format.
  3. add missing classmethod decorator.

Snapshots:

Include snapshots for easier review.

Checklist:

csunny commented 1 month ago

@nightosong Thanks for your PR, can you fix the check errors? You can refer to https://github.com/eosphoros-ai/DB-GPT/blob/main/CONTRIBUTING.md

csunny commented 1 month ago

dbgpt/agent/core/action/base.py :184:89: E501 line too long (91 > 88 characters)

nightosong commented 1 month ago

@csunny The issue has been fixed. A recheck is needed.