Skip to content

Commit f5ea193

Browse files
committed
add documentation
1 parent 1740112 commit f5ea193

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/private/pypi/pep508_evaluate.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ def evaluate(marker, *, env, strict = True, **kwargs):
122122
**kwargs: Extra kwargs to be passed to the expression evaluator.
123123
124124
Returns:
125-
The {type}`bool` If the marker is compatible with the given env.
125+
The {type}`bool | str` If the marker is compatible with the given env. If strict is
126+
`False`, then the output type is `str` which will represent the remaining
127+
expression that has not been evaluated.
126128
"""
127129
tokens = tokenize(marker)
128130

0 commit comments

Comments
 (0)