Skip to content

Commit 7348583

Browse files
committed
re-run autoformatters
now that base python is 3.10
1 parent cb24534 commit 7348583

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ repos:
3232
- --fix
3333
# isort rules get confused in the temporary files
3434
- --ignore=I
35-
- repo: https://github.com/pre-commit/mirrors-prettier
36-
rev: v4.0.0-alpha.8
35+
- repo: https://github.com/rbubley/mirrors-prettier
36+
rev: v3.6.2
3737
hooks:
3838
- id: prettier
3939
- repo: https://github.com/pre-commit/pre-commit-hooks

benchmarks/benchmarks/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import datetime
22
import time
3-
from typing import Callable
3+
from collections.abc import Callable
44

55

66
def wait_for(condition: Callable):

benchmarks/gcloud_setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import sys
55
from subprocess import Popen, check_call
66
from time import sleep
7-
from typing import List
87

98
import googleapiclient.discovery as gcd
109

@@ -25,7 +24,7 @@ def generate_template_name(number_of_cores_and_ram):
2524
return f"{INSTANCE_NAME_PREFIX}{number_of_cores_and_ram}"
2625

2726

28-
def get_running_instance_names() -> List[str]:
27+
def get_running_instance_names() -> list[str]:
2928
result = compute.instances().list(project=PROJECT_NAME, zone=ZONE).execute()
3029
return [item["name"] for item in result["items"]] if "items" in result else []
3130

ipyparallel/traitlets.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
"""Custom ipyparallel trait types"""
22

3-
import sys
4-
5-
if sys.version_info < (3, 10):
6-
from importlib_metadata import entry_points
7-
else:
8-
from importlib.metadata import entry_points
3+
from importlib.metadata import entry_points
94

105
from traitlets import List, TraitError, Type
116

0 commit comments

Comments
 (0)