fix: ruff PIE790

This commit is contained in:
283375 2024-09-28 17:42:00 +08:00
parent 990efee900
commit caced6eaec
Signed by: 283375
SSH Key Fingerprint: SHA256:UcX0qg6ZOSDOeieKPGokA5h7soykG61nz2uxuQgVLSk

View File

@ -22,7 +22,6 @@ class RatingClassFormatter:
""" """
Returns the capitalized rating class name, e.g. Future. Returns the capitalized rating class name, e.g. Future.
""" """
...
@overload @overload
@classmethod @classmethod
@ -33,7 +32,6 @@ class RatingClassFormatter:
The integer will be converted to `ArcaeaRatingClass` enum, The integer will be converted to `ArcaeaRatingClass` enum,
and will return "Unknown" if the convertion fails. and will return "Unknown" if the convertion fails.
""" """
...
@classmethod @classmethod
def name(cls, rating_class: Any) -> NAME_FORMAT_RESULTS: def name(cls, rating_class: Any) -> NAME_FORMAT_RESULTS:
@ -57,7 +55,6 @@ class RatingClassFormatter:
""" """
Returns the uppercased rating class name, e.g. FTR. Returns the uppercased rating class name, e.g. FTR.
""" """
...
@overload @overload
@classmethod @classmethod
@ -68,7 +65,6 @@ class RatingClassFormatter:
The integer will be converted to `ArcaeaRatingClass` enum, The integer will be converted to `ArcaeaRatingClass` enum,
and will return "UNK" if the convertion fails. and will return "UNK" if the convertion fails.
""" """
...
@classmethod @classmethod
def abbreviation(cls, rating_class: Any) -> ABBREVIATION_FORMAT_RESULTS: def abbreviation(cls, rating_class: Any) -> ABBREVIATION_FORMAT_RESULTS: