Skip to content

Commit 7b8968f

Browse files
authored
Merge pull request #6735 from bluetech/metafunc-annotate
Type annotate Metafunc
2 parents 0c68e7a + 5945c3f commit 7b8968f

File tree

3 files changed

+301
-216
lines changed

3 files changed

+301
-216
lines changed

src/_pytest/compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def _bytes_to_ascii(val: bytes) -> str:
227227
return val.decode("ascii", "backslashreplace")
228228

229229

230-
def ascii_escaped(val: Union[bytes, str]):
230+
def ascii_escaped(val: Union[bytes, str]) -> str:
231231
"""If val is pure ascii, returns it as a str(). Otherwise, escapes
232232
bytes objects into a sequence of escaped bytes:
233233

0 commit comments

Comments
 (0)