From 63baa412d2a3917f15873026cf0458ad41c2171a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dion=20H=C3=A4fner?= Date: Mon, 8 Jan 2024 00:03:46 +0100 Subject: [PATCH] fix apidoc parsing of <> --- terracotta/server/fields.py | 2 +- terracotta/server/rgb.py | 6 +++--- terracotta/server/singleband.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/terracotta/server/fields.py b/terracotta/server/fields.py index ee192506..401610af 100644 --- a/terracotta/server/fields.py +++ b/terracotta/server/fields.py @@ -39,7 +39,7 @@ def _deserialize( def validate_stretch_range(data: Any) -> None: """ - Validates that the stretch range is in the format `p<digits>` + Validates that the stretch range is in the format `p` when a string is used. """ if isinstance(data, str): diff --git a/terracotta/server/rgb.py b/terracotta/server/rgb.py index 7c297f13..fe9c7a1c 100644 --- a/terracotta/server/rgb.py +++ b/terracotta/server/rgb.py @@ -37,7 +37,7 @@ class Meta: description=( "Stretch range [min, max] to use for the red band as JSON array. " "Min and max may be numbers to use as absolute range, or strings " - "of the format `p<digits>` with an integer between 0 and 100 " + "of the format `p` with an integer between 0 and 100 " "to use percentiles of the image instead. " "Null values indicate global minimum / maximum." ), @@ -50,7 +50,7 @@ class Meta: description=( "Stretch range [min, max] to use for the gren band as JSON array. " "Min and max may be numbers to use as absolute range, or strings " - "of the format `p<digits>` with an integer between 0 and 100 " + "of the format `p` with an integer between 0 and 100 " "to use percentiles of the image instead. " "Null values indicate global minimum / maximum." ), @@ -63,7 +63,7 @@ class Meta: description=( "Stretch range [min, max] to use for the blue band as JSON array. " "Min and max may be numbers to use as absolute range, or strings " - "of the format `p<digits>` with an integer between 0 and 100 " + "of the format `p` with an integer between 0 and 100 " "to use percentiles of the image instead. " "Null values indicate global minimum / maximum." ), diff --git a/terracotta/server/singleband.py b/terracotta/server/singleband.py index 2dc83b83..642527e7 100644 --- a/terracotta/server/singleband.py +++ b/terracotta/server/singleband.py @@ -42,7 +42,7 @@ class Meta: description=( "Stretch range [min, max] to use as JSON array. " "Min and max may be numbers to use as absolute range, or strings " - "of the format `p<digits>` with an integer between 0 and 100 " + "of the format `p` with an integer between 0 and 100 " "to use percentiles of the image instead. " "Null values indicate global minimum / maximum." ),