Skip to content

Commit 30b3710

Browse files
committed
libvcs(feat[__init__]): Export SyncResult and SyncError from top-level package
why: Users currently must import from libvcs.sync.base directly. Exporting from __init__.py makes the public API explicit. what: - Add SyncResult and SyncError to libvcs.__init__ imports - Add both to __all__
1 parent aec95fb commit 30b3710

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/libvcs/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import logging
66

77
from ._internal.run import CmdLoggingAdapter
8-
from .sync.base import BaseSync
8+
from .sync.base import BaseSync, SyncError, SyncResult
99
from .sync.git import GitSync
1010
from .sync.hg import HgSync
1111
from .sync.svn import SvnSync
@@ -16,6 +16,8 @@
1616
"GitSync",
1717
"HgSync",
1818
"SvnSync",
19+
"SyncError",
20+
"SyncResult",
1921
]
2022

2123
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)