lock variable fix #28
Reference in New Issue
Block a user
Delete Branch "fix-lock"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refactor the lock variable in AppConfig to use ClassVar for pydantic error.
Pull Request Overview
This pull request fixes a Pydantic compatibility issue by properly typing a class-level lock variable in the AppConfig class. The change addresses Pydantic's requirement that class variables be explicitly declared as
ClassVarto distinguish them from instance fields.ClassVarfrom the typing module__lockclass variable usingClassVar[threading.Lock]Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.