Skip to content

Commit 2ba162f

Browse files
committed
pyproject: Pack src/vcspull/py.typed
1 parent 3bb762c commit 2ba162f

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ include = [
3333
{ path = "docs", format = "sdist" },
3434
{ path = "examples", format = "sdist" },
3535
{ path = "conftest.py", format = "sdist" },
36+
{ path = "src/vcspull/py.typed" },
3637
]
3738
readme = 'README.md'
3839
keywords = [

src/vcspull/py.typed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src/vcspull/types.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
"""Type definitions for VCSPull."""
2+
3+
from __future__ import annotations
4+
5+
import typing as t
6+
from typing import TypedDict
7+
8+
9+
class ConfigDict(TypedDict, total=False):
10+
"""TypedDict for repository configuration dictionary.
11+
12+
This is used primarily in test fixtures and legacy code paths.
13+
"""
14+
15+
vcs: str
16+
name: str
17+
path: t.Any # Can be str or Path
18+
url: str
19+
remotes: dict[str, t.Any] # Can contain various remote types
20+
rev: str
21+
shell_command_after: str | list[str]

0 commit comments

Comments
 (0)