Skip to content
Snippets Groups Projects
Verified Commit db6453ae authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fix: add type hints to serializer method fields

parent 8de91024
No related branches found
No related tags found
No related merge requests found
Pipeline #5630 passed
......@@ -757,11 +757,11 @@ class TimeSlotSerializer(serializers.ModelSerializer):
) + read_only_fields
@staticmethod
def get_show_id(obj):
def get_show_id(obj) -> int:
return obj.schedule.show.id
@staticmethod
def get_note_id(obj):
def get_note_id(obj) -> int:
return obj.note.id if hasattr(obj, "note") else None
def update(self, instance, validated_data):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment