Skip to content

Commit 030372c

Browse files
style: auto fixes from pre-commit hooks
1 parent d97caa1 commit 030372c

22 files changed

+29
-15
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# documentation root, use os.path.abspath to make it absolute, like shown here.
2323
sys.path.insert(0, os.path.abspath(".."))
2424
sys.path.append(os.path.abspath("extensions"))
25-
from mafic import __version__ # noqa: E402
25+
from mafic import __version__
2626

2727
project = "Mafic"
2828
copyright = "2022-present, Oliver Wilkes"
@@ -91,7 +91,7 @@
9191

9292

9393
def typehints_formatter(annotation: Any, _: Config) -> str | None: # noqa: ANN401
94-
return aliases.get(annotation, None)
94+
return aliases.get(annotation)
9595

9696

9797
intersphinx_mapping = {

mafic/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Mafic CLI tools."""
2+
23
# SPDX-License-Identifier: MIT
34

45
from __future__ import annotations

mafic/errors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Errors raised by Mafic."""
2+
23
# SPDX-License-Identifier: MIT
34

45
from __future__ import annotations

mafic/events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Objects for dispatched events via the client."""
2+
23
# SPDX-License-Identifier: MIT
34
# pyright: reportImportCycles=false
45
# Player import.

mafic/filter.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Filters that can be applied to a Player."""
2+
23
# SPDX-License-Identifier: MIT
34
# Reference to filter meanings can be found in:
45
# https://github.com/natanbc/lavadsp
@@ -616,11 +617,9 @@ class Filter:
616617
def __init__(
617618
self,
618619
*,
619-
equalizer: Equalizer
620-
| list[tuple[int, float]]
621-
| list[float]
622-
| list[EQBand]
623-
| None = None,
620+
equalizer: (
621+
Equalizer | list[tuple[int, float]] | list[float] | list[EQBand] | None
622+
) = None,
624623
karaoke: Karaoke | None = None,
625624
timescale: Timescale | None = None,
626625
tremolo: Tremolo | None = None,
@@ -644,11 +643,9 @@ def __init__(
644643

645644
def _convert_equalizer(
646645
self,
647-
equalizer: Equalizer
648-
| list[tuple[int, float]]
649-
| list[float]
650-
| list[EQBand]
651-
| None,
646+
equalizer: (
647+
Equalizer | list[tuple[int, float]] | list[float] | list[EQBand] | None
648+
),
652649
) -> Equalizer | None:
653650
if equalizer is None:
654651
return None

mafic/ip.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The Lavalink route planner API."""
2+
23
# SPDX-License-Identifier: MIT
34

45
from __future__ import annotations

mafic/node.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Node class to represent one Lavalink instance."""
2+
23
# SPDX-License-Identifier: MIT
34
# pyright: reportImportCycles=false
45
# Player import.

mafic/player.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""A Player is used to connect to a channel."""
2+
23
# SPDX-License-Identifier: MIT
34

45
from __future__ import annotations

mafic/playlist.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The module containing :class:`Playlist`."""
2+
23
# SPDX-License-Identifier: MIT
34

45
from __future__ import annotations

mafic/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The Lavalink plugin system."""
2+
23
# SPDX-License-Identifier: MIT
34

45
from __future__ import annotations

0 commit comments

Comments
 (0)