File tree Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11import datetime
22import time
3- from typing import Callable
3+ from collections . abc import Callable
44
55
66def wait_for (condition : Callable ):
Original file line number Diff line number Diff line change 44import sys
55from subprocess import Popen , check_call
66from time import sleep
7- from typing import List
87
98import 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
Original file line number Diff line number Diff line change 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
105from traitlets import List , TraitError , Type
116
You can’t perform that action at this time.
0 commit comments