File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -630,6 +630,7 @@ class StickerType(Enum):
630630class StickerFormatType (Enum ):
631631 """Sticker format Type"""
632632
633+ unknown = 0
633634 png = 1
634635 apng = 2
635636 lottie = 3
@@ -642,9 +643,9 @@ def file_extension(self) -> str:
642643 StickerFormatType .apng : "png" ,
643644 StickerFormatType .lottie : "json" ,
644645 StickerFormatType .gif : "gif" ,
646+ StickerFormatType .unknown : "unknown" ,
645647 }
646- # TODO: Improve handling of unknown sticker format types if possible
647- return lookup .get (self , "png" )
648+ return lookup .get (self , StickerFormatType .unknown )
648649
649650
650651class InviteTarget (Enum ):
@@ -833,8 +834,8 @@ def from_datatype(cls, datatype):
833834 if issubclass (datatype , float ):
834835 return cls .number
835836
836- from .commands .context import ApplicationContext # noqa: PLC0415
837- from .ext .bridge import BridgeContext # noqa: PLC0415
837+ from .commands .context import ApplicationContext
838+ from .ext .bridge import BridgeContext
838839
839840 if not issubclass (
840841 datatype , (ApplicationContext , BridgeContext )
You can’t perform that action at this time.
0 commit comments