Skip to content

Commit ad827be

Browse files
committed
fix(lint): upgrade type annotations
1 parent 25caeab commit ad827be

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/pyscaffoldext/pre_commit_ruff/extension.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from argparse import ArgumentParser
44
from functools import partial, reduce
5-
from typing import List
65

76
from pyscaffold import structure, toml
87
from pyscaffold.actions import Action, ActionParams, ScaffoldOpts, Structure
@@ -42,7 +41,7 @@ def augment_cli(self, parser: ArgumentParser):
4241
)
4342
return self
4443

45-
def activate(self, actions: List[Action]) -> List[Action]:
44+
def activate(self, actions: list[Action]) -> list[Action]:
4645
"""Activates See :obj:`pyscaffold.extension.Extension.activate`.
4746
4847
Args:

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Place for fixtures and configuration that will be used in most of the tests.
22
33
A nice option is to put your ``autouse`` fixtures here.
4-
Functions that can be imported and re-used are more suitable for the ``helpers`` file.
4+
Functions that can be imported and reused are more suitable for the ``helpers`` file.
55
"""
66

77
import os
@@ -15,7 +15,7 @@
1515

1616
@pytest.fixture
1717
def tmpfolder(tmp_path):
18-
"""tmpfolder.
18+
"""Tmpfolder.
1919
2020
:param tmp_path: Path
2121
"""

0 commit comments

Comments
 (0)