Skip to content

Commit

Permalink
🏷️ Add typehints to remove redoc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbal committed Oct 18, 2024
1 parent 2483b95 commit 74b50b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class Meta:
},
}

def get_volledige_naam(self, obj):
def get_volledige_naam(self, obj) -> str:
return obj.get_full_name()

@transaction.atomic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Meta:
},
}

def get_categorie_naam(self, obj):
def get_categorie_naam(self, obj) -> str | None:
if obj.categorie:
return obj.categorie.naam

Expand Down Expand Up @@ -301,7 +301,7 @@ class Meta:
"volledige_naam",
)

def get_volledige_naam(self, obj):
def get_volledige_naam(self, obj) -> str:
return obj.get_full_name()


Expand Down Expand Up @@ -333,7 +333,7 @@ class Meta:
"volledige_naam",
)

def get_volledige_naam(self, obj):
def get_volledige_naam(self, obj) -> str:
return obj.get_full_name()

@transaction.atomic
Expand Down
1 change: 1 addition & 0 deletions src/openklant/components/klantinteracties/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3371,6 +3371,7 @@ components:
description: De unieke URL van deze categorie binnen deze API.
categorieNaam:
type: string
nullable: true
readOnly: true
description: De naam van de gelinkte categorie.
beginDatum:
Expand Down

0 comments on commit 74b50b2

Please sign in to comment.