Skip to content

Commit

Permalink
docs: remove Self type usage for classmethods
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronhnsy committed Jun 14, 2022
1 parent cb062d5 commit c99f679
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions slate/objects/filters/channel_mix.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
# Standard Library
from typing import TypedDict

# Packages
from typing_extensions import Self


__all__ = (
"ObsidianChannelMixData",
Expand Down Expand Up @@ -82,25 +79,25 @@ def _construct_lavalink_payload(self) -> LavalinkChannelMixData:
# classmethods

@classmethod
def mono(cls) -> Self:
def mono(cls) -> ChannelMix:
return cls(left_to_left=0.5, left_to_right=0.5, right_to_left=0.5, right_to_right=0.5)

@classmethod
def only_left(cls) -> Self:
def only_left(cls) -> ChannelMix:
return cls(left_to_left=1.0, left_to_right=0.0, right_to_left=0.0, right_to_right=0.0)

@classmethod
def full_left(cls) -> Self:
def full_left(cls) -> ChannelMix:
return cls(left_to_left=0.5, left_to_right=0.0, right_to_left=0.5, right_to_right=0.0)

@classmethod
def only_right(cls) -> Self:
def only_right(cls) -> ChannelMix:
return cls(left_to_left=0.0, left_to_right=0.0, right_to_left=0.0, right_to_right=1.0)

@classmethod
def full_right(cls) -> Self:
def full_right(cls) -> ChannelMix:
return cls(left_to_left=0.0, left_to_right=0.5, right_to_left=0.0, right_to_right=0.5)

@classmethod
def switch(cls) -> Self:
def switch(cls) -> ChannelMix:
return cls(left_to_left=0.0, left_to_right=1.0, right_to_left=1.0, right_to_right=0.0)

0 comments on commit c99f679

Please sign in to comment.