Skip to content

Commit e8f35d5

Browse files
committed
Added Empty Lines before and after the code-block
1 parent b3dbe8c commit e8f35d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/en/how-to/types.rst

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ For example:
1717

1818

1919
.. code-block:: python
20+
2021
def add(x: int, y: int) -> int:
2122
return x + y
2223
@@ -34,6 +35,7 @@ While test functions do not return values, we can add `-> None` as the return ty
3435
For example:
3536

3637
.. code-block:: python
38+
3739
import pytest
3840
3941
@@ -58,6 +60,7 @@ Adding type hints helps clarify what kind of data the fixtures returns, making c
5860
If a fixture returns a number, you can specify it returns an `int`:
5961

6062
.. code-block:: python
63+
6164
import pytest
6265
6366
@@ -82,6 +85,7 @@ Note: From Python 3.5 or later, typing module is built-in module in Python.
8285

8386

8487
.. code-block:: python
88+
8589
from typing import List
8690
import pytest
8791
@@ -98,6 +102,7 @@ In this example, `List[int]` ensures that the list contains only integers, allow
98102

99103

100104
.. code-block:: python
105+
101106
from typing import Dict
102107
import pytest
103108
@@ -121,6 +126,7 @@ Adding types helps to maintain consistency of values, especially for complex inp
121126
For example, you are testing if adding 1 to `input_value` results in `expected_output` for each set of arguments.
122127

123128
.. code-block:: python
129+
124130
import pytest
125131
126132

0 commit comments

Comments
 (0)