Skip to content

Commit

Permalink
Merge pull request #4847 from wisp3rwind/dbcore_typing_3
Browse files Browse the repository at this point in the history
typings: Fixes and improvements for dbcore.query
  • Loading branch information
sampsyo authored Jul 18, 2023
2 parents b19b961 + bffeb98 commit 7b86f61
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 68 deletions.
2 changes: 1 addition & 1 deletion beets/dbcore/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def _type(cls, key) -> types.Type:
"""
return cls._fields.get(key) or cls._types.get(key) or types.DEFAULT

def _get(self, key, default: bool = None, raise_: bool = False):
def _get(self, key, default: Any = None, raise_: bool = False):
"""Get the value for a field, or `default`. Alternatively,
raise a KeyError if the field is not available.
"""
Expand Down
Loading

0 comments on commit 7b86f61

Please sign in to comment.