Skip to content

Commit 5005428

Browse files
authored
Fix alignment of cheat sheet example (#15039)
In `cheat_sheep_py3.rst` functions examples, there is one function example misaligned with to other examples in the code block. This PR just removes leading space.
1 parent cc7b062 commit 5005428

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/cheat_sheet_py3.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ Functions
103103
def show(value: str, excitement: int = 10) -> None:
104104
print(value + "!" * excitement)
105105
106-
# Note that arguments without a type are dynamically typed (treated as Any)
107-
# and that functions without any annotations not checked
108-
def untyped(x):
109-
x.anything() + 1 + "string" # no errors
106+
# Note that arguments without a type are dynamically typed (treated as Any)
107+
# and that functions without any annotations not checked
108+
def untyped(x):
109+
x.anything() + 1 + "string" # no errors
110110
111111
# This is how you annotate a callable (function) value
112112
x: Callable[[int, float], float] = f

0 commit comments

Comments
 (0)