refactor: upgrade code to >=python3.7 (pre-commit)
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2189>
This commit is contained in:
parent
7768ea77a4
commit
8d9946d35a
143 changed files with 454 additions and 582 deletions
|
|
@ -6,7 +6,7 @@ def load(model, *args, **kwargs):
|
|||
EXCLUDE_VALIDATION = {"Track": ["artist"]}
|
||||
|
||||
|
||||
class Importer(object):
|
||||
class Importer:
|
||||
def __init__(self, model):
|
||||
self.model = model
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ class Importer(object):
|
|||
return m
|
||||
|
||||
|
||||
class Mapping(object):
|
||||
class Mapping:
|
||||
"""Cast musicbrainz data to funkwhale data and vice-versa"""
|
||||
|
||||
def __init__(self, musicbrainz_mapping):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue