Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion dvc/repo/scm_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from dvc.utils.collections import ensure_list

if TYPE_CHECKING:
from typing_extensions import Self

from dvc.repo import Repo
from dvc.scm import Base

Expand Down Expand Up @@ -131,7 +133,7 @@ def __call__(

self.files_to_track = set()

def __enter__(self) -> "SCMContext":
def __enter__(self) -> "Self":
self._cm = self()
return self._cm.__enter__()

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/command/test_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_help(caplog, capsys, command_tuples):
out, err = capsys.readouterr()

# validate metavars are all in lowercase
usage = "\n".join(takewhile(lambda o: bool(o), out.splitlines()))
usage = "\n".join(takewhile(bool, out.splitlines()))

message = (
"metavars not lowercased, you are likely missing formatter_class=XXX "
Expand Down
Loading