Skip to content

Commit 84153fb

Browse files
committed
refactor!(projects): Make arguments kw-only
To make passing as a configuration file (#315 and vcs-python/vcspull#362) easier, deprecate positional arguments. See also: - PEP 570: https://peps.python.org/pep-0570/ - https://peps.python.org/pep-0570/#:~:text=def%20kwd_only_arg*%2C%20arg)(%3A)
1 parent 2ecdc84 commit 84153fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libvcs/projects/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from typing import NamedTuple
55
from urllib import parse as urlparse
66

7-
from libvcs.types import StrPath
87
from libvcs._internal.run import CmdLoggingAdapter, mkdir_p, run
8+
from libvcs.types import StrPath
99

1010
logger = logging.getLogger(__name__)
1111

@@ -41,7 +41,7 @@ class BaseProject:
4141
#: vcs app name, e.g. 'git'
4242
bin_name = ""
4343

44-
def __init__(self, url, dir: StrPath, progress_callback=None, *args, **kwargs):
44+
def __init__(self, *, url: str, dir: StrPath, progress_callback=None, **kwargs):
4545
r"""
4646
Parameters
4747
----------

0 commit comments

Comments
 (0)