Skip to content

Commit

Permalink
Fix alignment of cheat sheet example (#15039)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vallpaper authored Apr 12, 2023
1 parent cc7b062 commit 5005428
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/source/cheat_sheet_py3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ Functions
def show(value: str, excitement: int = 10) -> None:
print(value + "!" * excitement)
# Note that arguments without a type are dynamically typed (treated as Any)
# and that functions without any annotations not checked
def untyped(x):
x.anything() + 1 + "string" # no errors
# Note that arguments without a type are dynamically typed (treated as Any)
# and that functions without any annotations not checked
def untyped(x):
x.anything() + 1 + "string" # no errors
# This is how you annotate a callable (function) value
x: Callable[[int, float], float] = f
Expand Down

0 comments on commit 5005428

Please sign in to comment.