File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -636,15 +636,14 @@ class StickerFormatType(Enum):
636
636
gif = 4
637
637
638
638
@property
639
- def file_extension (self ) -> str :
639
+ def file_extension (self ) -> str | None :
640
640
lookup : dict [StickerFormatType , str ] = {
641
641
StickerFormatType .png : "png" ,
642
642
StickerFormatType .apng : "png" ,
643
643
StickerFormatType .lottie : "json" ,
644
644
StickerFormatType .gif : "gif" ,
645
645
}
646
- # TODO: Improve handling of unknown sticker format types if possible
647
- return lookup .get (self , "png" )
646
+ return lookup .get (self )
648
647
649
648
650
649
class InviteTarget (Enum ):
@@ -833,8 +832,8 @@ def from_datatype(cls, datatype):
833
832
if issubclass (datatype , float ):
834
833
return cls .number
835
834
836
- from .commands .context import ApplicationContext # noqa: PLC0415
837
- from .ext .bridge import BridgeContext # noqa: PLC0415
835
+ from .commands .context import ApplicationContext
836
+ from .ext .bridge import BridgeContext
838
837
839
838
if not issubclass (
840
839
datatype , (ApplicationContext , BridgeContext )
You can’t perform that action at this time.
0 commit comments