From 61fd608b92b181bfc540ec160e125b506c7a33c9 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Fri, 30 Dec 2022 10:31:01 +0100 Subject: [PATCH] styles gallery: Make docstring in example follow PEP 257 The example is displayed multiple times at https://pygments.org/styles/. Code displayed on the Pygments website should follow best practices, such as https://peps.python.org/pep-0257/. --- doc/examples/example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/example.py b/doc/examples/example.py index ae5293af89..6c9e2f144c 100644 --- a/doc/examples/example.py +++ b/doc/examples/example.py @@ -4,7 +4,7 @@ class Math: @staticmethod def fib(n: int) -> Iterator[int]: - """ Fibonacci series up to n """ + """Fibonacci series up to n.""" a, b = 0, 1 while a < n: yield a