Skip to content

Commit f6d0746

Browse files
stdedosirtazaakram
authored andcommitted
Revert "Roll back from __future__ import annotations for Python 3.6"
This reverts commit b8ce4ad. Signed-off-by: Stavros Ntentos <[email protected]>
1 parent 6f321a5 commit f6d0746

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

pylint_pytest/checkers/class_attr_loader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from astroid import Assign, Attribute, ClassDef, Name
24

35
from ..utils import _can_use_fixture, _is_class_autouse_fixture

pylint_pytest/checkers/fixture.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import fnmatch
24
import os
35
import sys

pylint_pytest/checkers/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import sys
24
from pprint import pprint
35
from typing import Any

tests/base_tester.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import os
24
import sys
35
from abc import ABC

tests/base_tester_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class NoMsgIDSubclass(BasePytestTester):
2020
pass
2121

2222

23-
@pytest.mark.parametrize("msg_id", [123, None, ""], ids=lambda x: f"msg_id={x}")
23+
@pytest.mark.parametrize("msg_id", [123, None, ""], ids=lambda msg_id: f"{msg_id=}")
2424
def test_init_subclass_invalid_msg_id_type(msg_id):
2525
with pytest.raises(TypeError):
2626

0 commit comments

Comments
 (0)