Skip to content

Commit e01ab6e

Browse files
committed
Update type-hint syntax
This gets rid of some errors from the pyupgrade pre-commit hook.
1 parent 7bcfda9 commit e01ab6e

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/cyhy_runner/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
"""The Cyber Hygiene job runner."""
22

3-
# Standard Python Libraries
4-
from typing import List
5-
63
# We disable a Flake8 check for "Module imported but unused (F401)" here because
74
# although this import is not directly used, it populates the value
85
# package_name.__version__, which is used to get version information about this
96
# Python package.
107
from ._version import __version__ # noqa: F401
118

12-
__all__: List[str] = []
9+
__all__: list[str] = []

src/cyhy_runner/cyhy_runner.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import subprocess # nosec
2626
import sys
2727
import time
28-
from typing import Set
2928

3029
# Third-Party Libraries
3130
import daemon
@@ -51,7 +50,7 @@
5150

5251
logger = logging.getLogger(__name__)
5352

54-
running_dirs: Set[str] = set()
53+
running_dirs: set[str] = set()
5554
processes = []
5655
IS_RUNNING = True
5756

0 commit comments

Comments
 (0)