Skip to content

Commit

Permalink
Fix using builtin as annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan committed May 28, 2024
1 parent 21beda2 commit fdb50d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mreg/api/v1/views_zones.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from typing import List
import django.core.exceptions

from django.db import transaction
Expand Down Expand Up @@ -56,7 +57,7 @@ def _validate_nameservers(names):
done.add(name)


def _get_request_nameservers(request: Request, field: str = "primary_ns") -> list[str]:
def _get_request_nameservers(request: Request, field: str = "primary_ns") -> List[str]:
"""Extract nameservers from the request data."""
if request.content_type == "application/json":
return request.data.get(field, [])
Expand Down

0 comments on commit fdb50d1

Please sign in to comment.