Skip to content

Commit da16b78

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 84788d3 commit da16b78

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

unit_test/get_platform_test.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import contextlib
22
import sys
33
from pathlib import Path
4-
from typing import Dict
54

65
import pytest
76
import setuptools._distutils.util
@@ -16,7 +15,7 @@
1615

1716

1817
@contextlib.contextmanager
19-
def patched_environment(monkeypatch: pytest.MonkeyPatch, environment: Dict[str, str]):
18+
def patched_environment(monkeypatch: pytest.MonkeyPatch, environment: dict[str, str]):
2019
with monkeypatch.context() as mp:
2120
for envvar, val in environment.items():
2221
mp.setenv(name=envvar, value=val)
@@ -25,7 +24,7 @@ def patched_environment(monkeypatch: pytest.MonkeyPatch, environment: Dict[str,
2524

2625
def test_x86(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
2726
arch = "32"
28-
environment: Dict[str, str] = {}
27+
environment: dict[str, str] = {}
2928

3029
configuration = PythonConfiguration("irrelevant", arch, "irrelevant", None)
3130

@@ -39,7 +38,7 @@ def test_x86(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
3938

4039
def test_x64(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
4140
arch = "64"
42-
environment: Dict[str, str] = {}
41+
environment: dict[str, str] = {}
4342

4443
configuration = PythonConfiguration("irrelevant", arch, "irrelevant", None)
4544

@@ -56,7 +55,7 @@ def test_x64(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
5655
)
5756
def test_arm(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
5857
arch = "ARM64"
59-
environment: Dict[str, str] = {}
58+
environment: dict[str, str] = {}
6059

6160
configuration = PythonConfiguration("irrelevant", arch, "irrelevant", None)
6261

0 commit comments

Comments
 (0)