Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 16, 2024
1 parent ac2625f commit 76f93e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
12 changes: 4 additions & 8 deletions examples/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def get_arg_number(arg):


class Timer(Protocol):
def start(self):
...
def start(self): ...

def stop(self):
"""
Expand Down Expand Up @@ -105,14 +104,11 @@ def stop(self):
# manager so that we can run both CuPy and SciPy
# programs with resource scoping.
class DummyScope:
def __init__(self):
...
def __init__(self): ...

def __enter__(self):
...
def __enter__(self): ...

def __exit__(self, _, __, ___):
...
def __exit__(self, _, __, ___): ...

def __getitem__(self, item):
return self
Expand Down
3 changes: 1 addition & 2 deletions legate_sparse/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ def should_wrap(obj: object) -> bool:


class AnyCallable(Protocol):
def __call__(self, *args: Any, **kwargs: Any) -> Any:
...
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...


def wrap(func: AnyCallable) -> Any:
Expand Down

0 comments on commit 76f93e3

Please sign in to comment.