Skip to content

Commit

Permalink
fix(type): add missing return type
Browse files Browse the repository at this point in the history
  • Loading branch information
goodki-d committed Jan 9, 2025
1 parent 7c5fb44 commit fbdc04c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic/models/ctx_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ def __iter__(self):
return iter(self._locals)

@staticmethod
def _truncate(s: str, limit: int = 40):
def _truncate(s: str, limit: int = 40) -> str:
return s[:limit] + "..." if len(s) > limit else s

0 comments on commit fbdc04c

Please sign in to comment.