feat: add a type hint

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2757>
This commit is contained in:
Georg Krause 2024-02-21 08:34:57 +00:00 committed by Kasper Seweryn
parent 06cfe8da95
commit b1eba58dcc
1 changed files with 1 additions and 2 deletions

View File

@ -236,8 +236,7 @@ class TrackUploadSerializer(serializers.Serializer):
extension = serializers.CharField()
is_local = serializers.SerializerMethodField()
@extend_schema_field(serializers.BooleanField())
def get_is_local(self, upload):
def get_is_local(self, upload) -> bool:
return federation_utils.is_local(upload.fid)