Skip to content

Commit 9467aab

Browse files
committed
!squash More
1 parent b814472 commit 9467aab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vcspull/validator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import typing as t
66

77
from pydantic import ValidationError
8+
from typing_extensions import TypeGuard
89

910
from . import exc
1011
from .schemas import (
@@ -21,7 +22,7 @@
2122
)
2223

2324

24-
def is_valid_config(config: dict[str, t.Any]) -> t.TypeGuard[RawConfig]:
25+
def is_valid_config(config: dict[str, t.Any]) -> TypeGuard[RawConfig]:
2526
"""Return true and upcast if vcspull configuration file is valid.
2627
2728
Parameters
@@ -32,7 +33,7 @@ def is_valid_config(config: dict[str, t.Any]) -> t.TypeGuard[RawConfig]:
3233
Returns
3334
-------
3435
TypeGuard[RawConfig]
35-
True if config is valid, False otherwise
36+
True if config is a valid RawConfig
3637
"""
3738
try:
3839
# For None input

0 commit comments

Comments
 (0)