-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor and modernise package (#74)
* Docstrings * Fixes * Refactor Lyric object names * Update * Modernise * Refactor Lyric client headers handling * Update and format tests * Move * Fix
- Loading branch information
Showing
18 changed files
with
422 additions
and
441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
"""Lyric: Exceptions""" | ||
"""Lyric: Exceptions.""" | ||
|
||
|
||
class LyricException(BaseException): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
"""Lyric: Objects""" | ||
"""Lyric objects.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,31 @@ | ||
"""Lyric: Base""" | ||
"""Lyric base.""" | ||
|
||
import logging | ||
|
||
from ..client import LyricClient | ||
|
||
|
||
class LyricBase: | ||
class LyricBaseObject: | ||
"""Base class for Lyric.""" | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
def __init__(self, attributes) -> None: | ||
def __init__( | ||
self, | ||
attributes: dict, | ||
) -> None: | ||
"""Initialize.""" | ||
self.attributes = attributes | ||
|
||
|
||
class LyricBaseClient(LyricBase): | ||
class LyricBaseClient(LyricBaseObject): | ||
"""Base class for Lyric.""" | ||
|
||
def __init__(self, client: "AIOGitHubAPIClient", attributes: dict) -> None: | ||
def __init__( | ||
self, | ||
client: LyricClient, | ||
attributes: dict, | ||
) -> None: | ||
"""Initialise.""" | ||
super().__init__(attributes) | ||
self.client = client |
Oops, something went wrong.