Skip to content

Commit

Permalink
fixed setuptools missing for coverage-badge
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienPensart committed Jun 2, 2024
1 parent 4e2de64 commit 7a95465
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 160 deletions.
1 change: 1 addition & 0 deletions musicbot/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ def genre(self, genre: str) -> None:

@property
def rating(self) -> float:
print(f"{self}")
if self.extension == ".flac":
rating_str = self._get_first("fmps_rating")
else:
Expand Down
9 changes: 0 additions & 9 deletions musicbot/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,12 @@
from pathlib import Path
from typing import IO, Any, NoReturn, ParamSpec, TypeVar

import attr
import click
import httpx
import orjson
import rich
from beartype import beartype

# from methodtools import lru_cache
from progressbar import NullBar, ProgressBar

# from requests.structures import CaseInsensitiveDict
from rich.console import Console
from rich.table import Table

Expand All @@ -43,10 +38,6 @@ def default_encoder(data: Any) -> Any:
return str(data)
if dataclasses.is_dataclass(data):
return dataclasses.asdict(data)
# if isinstance(data, CaseInsensitiveDict):
# return dict(data)
if attr.has(data.__class__):
return attr.asdict(data)
raise TypeError(f"Unable to encode {data}")


Expand Down
Loading

0 comments on commit 7a95465

Please sign in to comment.