beets
beets copied to clipboard
Move queries and types to respective modules
This PR moves query and type definitions away from library.py to dbcore to improve modularity and organization.
Key Changes:
- Query and Type Relocation:
PathQueryandSingletonQuerymoved frombeets.librarytobeets.dbcore.query.DateType,PathType(and its variantsNullPathType),MusicalKey, andDurationTypemoved frombeets.librarytobeets.dbcore.types.- The
BLOB_TYPEdefinition was moved frombeets.librarytobeets.dbcore.queryand then referenced inbeets.dbcore.types. - The
human_seconds_shortutility function was moved frombeets.uitobeets.utildue to circular dependency.
- Test Modernization:
- The
PathQueryTestclass intest/test_query.pyhas been rewritten to usepytest.mark.parametrizefor more concise and readable test cases.
- The
- Import Updates: All internal references to these moved classes and functions have been updated across the codebase.
Thank you for the PR! The changelog has not been updated, so here is a friendly reminder to check if you need to add an entry.
Thank you for the PR! I really appreciate it, this will make our lives much easier in the long run!