Skip to content

Commit 54dd394

Browse files
committed
chore: Make VCSLocation.rev optional
1 parent 603f614 commit 54dd394

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
@@ -1,7 +1,7 @@
11
"""Base class for VCS Project plugins."""
22
import logging
33
import pathlib
4-
from typing import NamedTuple, Tuple
4+
from typing import NamedTuple, Optional, Tuple
55
from urllib import parse as urlparse
66

77
from libvcs._internal.run import CmdLoggingAdapter, run
@@ -12,7 +12,7 @@
1212

1313
class VCSLocation(NamedTuple):
1414
url: str
15-
rev: str
15+
rev: Optional[str]
1616

1717

1818
def convert_pip_url(pip_url: str) -> VCSLocation:

0 commit comments

Comments
 (0)