File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Type Annotations
2
2
3
- * attrs* comes with first class support for type annotations for both Python 3.6 ( {pep}` 526 ` ) and legacy syntax.
3
+ * attrs* comes with first- class support for type annotations for both {pep}` 526 ` and legacy syntax.
4
4
5
5
However they will forever remain * optional* , therefore the example from the README could also be written as:
6
6
Original file line number Diff line number Diff line change 4
4
import os .path
5
5
import shutil
6
6
import subprocess
7
- import sys
8
7
9
8
import pytest
10
9
11
10
import attrs
12
11
13
12
14
13
pytestmark = [
15
- pytest .mark .skipif (
16
- sys .version_info < (3 , 7 ), reason = "Requires Python 3.7+."
17
- ),
18
14
pytest .mark .skipif (
19
15
shutil .which ("pyright" ) is None , reason = "Requires pyright."
20
16
),
You can’t perform that action at this time.
0 commit comments