diff --git a/beets/autotag/match.py b/beets/autotag/match.py index ed02cdf6b..ddd6b6ee4 100644 --- a/beets/autotag/match.py +++ b/beets/autotag/match.py @@ -382,7 +382,7 @@ def tag_album(items, search_artist=None, search_album=None, search. This can be customized by setting the parameters. The `mapping` field of the album has the matched `items` as keys. - The recommendation is calculated from the match qualitiy of the + The recommendation is calculated from the match quality of the candidates. """ # Get current metadata. diff --git a/beets/dbcore/db.py b/beets/dbcore/db.py index 6fb259607..274e7af64 100644 --- a/beets/dbcore/db.py +++ b/beets/dbcore/db.py @@ -34,7 +34,7 @@ from .query import MatchQuery, NullSort, TrueQuery class FormattedMapping(collections.Mapping): """A `dict`-like formatted view of a model. - The accessor `mapping[key]` returns the formated version of + The accessor `mapping[key]` returns the formatted version of `model[key]` as a unicode string. If `for_path` is true, all path separators in the formatted values diff --git a/beets/dbcore/query.py b/beets/dbcore/query.py index 58af61ceb..4527975a8 100644 --- a/beets/dbcore/query.py +++ b/beets/dbcore/query.py @@ -368,7 +368,7 @@ class CollectionQuery(Query): def __hash__(self): """Since subqueries are mutable, this object should not be hashable. - However and for conveniencies purposes, it can be hashed. + However and for conveniences purposes, it can be hashed. """ return reduce(mul, map(hash, self.subqueries), 1) diff --git a/beets/dbcore/types.py b/beets/dbcore/types.py index 90c1d7c2e..7f3b2e39e 100644 --- a/beets/dbcore/types.py +++ b/beets/dbcore/types.py @@ -96,7 +96,7 @@ class Type(object): http://www.sqlite.org/datatype3.html https://docs.python.org/2/library/sqlite3.html#sqlite-and-python-types - Flexible fields have the type afinity `TEXT`. This means the + Flexible fields have the type affinity `TEXT`. This means the `sql_value` is either a `buffer` or a `unicode` object` and the method must handle these in addition. """ diff --git a/beets/importer.py b/beets/importer.py index 6e7ffcd2c..78b2ac250 100644 --- a/beets/importer.py +++ b/beets/importer.py @@ -1243,7 +1243,7 @@ def user_query(session, task): The coroutine accepts an ImportTask objects. It uses the session's `choose_match` method to determine the `action` for - this task. Depending on the action additional stages are exectuted + this task. Depending on the action additional stages are executed and the processed task is yielded. It emits the ``import_task_choice`` event for plugins. Plugins have diff --git a/beets/library.py b/beets/library.py index 377895eeb..edd4b11db 100644 --- a/beets/library.py +++ b/beets/library.py @@ -110,7 +110,7 @@ class PathQuery(dbcore.FieldQuery): class DateType(types.Float): # TODO representation should be `datetime` object - # TODO distinguish beetween date and time types + # TODO distinguish between date and time types query = dbcore.query.DateQuery def format(self, value): @@ -550,7 +550,7 @@ class Item(LibModel): All fields in `_media_fields` are written to disk according to the values on this object. - `path` is the path of the mediafile to wirte the data to. It + `path` is the path of the mediafile to write the data to. It defaults to the item's path. `tags` is a dictionary of additional metadata the should be @@ -1300,7 +1300,7 @@ class DefaultTemplateFunctions(object): _prefix = b'tmpl_' def __init__(self, item=None, lib=None): - """Paramaterize the functions. If `item` or `lib` is None, then + """Parametrize the functions. If `item` or `lib` is None, then some functions (namely, ``aunique``) will always evaluate to the empty string. """ diff --git a/beets/mediafile.py b/beets/mediafile.py index 22899dee0..842d2322e 100644 --- a/beets/mediafile.py +++ b/beets/mediafile.py @@ -315,12 +315,12 @@ class ImageType(enum.Enum): class Image(object): - """Strucuture representing image data and metadata that can be + """Structure representing image data and metadata that can be stored and retrieved from tags. The structure has four properties. * ``data`` The binary data of the image - * ``desc`` An optional descritpion of the image + * ``desc`` An optional description of the image * ``type`` An instance of `ImageType` indicating the kind of image * ``mime_type`` Read-only property that contains the mime type of the binary data @@ -812,7 +812,7 @@ class MP3ImageStorageStyle(ListStorageStyle, MP3StorageStyle): The `get_list` method inherited from ``ListStorageStyle`` returns a list of ``Image``s. Similarly, the `set_list` method accepts a - list of ``Image``s as its ``values`` arguemnt. + list of ``Image``s as its ``values`` argument. """ def __init__(self): super(MP3ImageStorageStyle, self).__init__(key='APIC')