Skip to content

Commit

Permalink
finally fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozef Kruszynski committed Oct 27, 2023
1 parent a883092 commit d19fe8c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,10 @@ prof/
.sync-exclude.lst

# Local Netlify folder
.netlify
.netlify

# Virtual environment
.venv

# MacOS
.DS_Store
18 changes: 18 additions & 0 deletions tests/test_mix.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2019-2022 morguldir
# Copyright (C) 2014 Thomas Amland
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import tidalapi

from .cover import verify_image_cover
Expand Down
3 changes: 2 additions & 1 deletion tidalapi/mix.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ class TextInfo:


class MixV2:
"""A mix from TIDALs v2 api endpoint, weirdly, it is used in only one place currently."""
"""A mix from TIDALs v2 api endpoint, weirdly, it is used in only one place
currently."""

date_added: Optional[datetime] = None
title: str = ""
Expand Down
3 changes: 2 additions & 1 deletion tidalapi/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,8 @@ def mix(self, mix_id=None) -> tidalapi.Mix:

def mixv2(self, mix_id=None) -> tidalapi.MixV2:
"""Function to create a mix object with access to the session instance smoothly
Calls :class:`tidalapi.MixV2(session=session, mix_id=mix_id) <.Album>` internally.
Calls :class:`tidalapi.MixV2(session=session, mix_id=mix_id) <.Album>`
internally.
:param mix_id: (Optional) The TIDAL id of the Mix. You may want access to the mix methods without an id.
:return: Returns a :class:`.MixV2` object that has access to the session instance used.
Expand Down

0 comments on commit d19fe8c

Please sign in to comment.