Skip to content

Commit 7cbe53f

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

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

examples/common.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ def get_arg_number(arg):
3838

3939

4040
class Timer(Protocol):
41-
def start(self):
42-
...
41+
def start(self): ...
4342

4443
def stop(self):
4544
"""
@@ -105,14 +104,11 @@ def stop(self):
105104
# manager so that we can run both CuPy and SciPy
106105
# programs with resource scoping.
107106
class DummyScope:
108-
def __init__(self):
109-
...
107+
def __init__(self): ...
110108

111-
def __enter__(self):
112-
...
109+
def __enter__(self): ...
113110

114-
def __exit__(self, _, __, ___):
115-
...
111+
def __exit__(self, _, __, ___): ...
116112

117113
def __getitem__(self, item):
118114
return self

legate_sparse/coverage.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ def should_wrap(obj: object) -> bool:
4343

4444

4545
class AnyCallable(Protocol):
46-
def __call__(self, *args: Any, **kwargs: Any) -> Any:
47-
...
46+
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
4847

4948

5049
def wrap(func: AnyCallable) -> Any:

0 commit comments

Comments
 (0)