Skip to content

Commit

Permalink
Merge pull request #6735 from bluetech/metafunc-annotate
Browse files Browse the repository at this point in the history
Type annotate Metafunc
  • Loading branch information
bluetech authored Feb 15, 2020
2 parents 0c68e7a + 5945c3f commit 7b8968f
Show file tree
Hide file tree
Showing 3 changed files with 301 additions and 216 deletions.
2 changes: 1 addition & 1 deletion src/_pytest/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def _bytes_to_ascii(val: bytes) -> str:
return val.decode("ascii", "backslashreplace")


def ascii_escaped(val: Union[bytes, str]):
def ascii_escaped(val: Union[bytes, str]) -> str:
"""If val is pure ascii, returns it as a str(). Otherwise, escapes
bytes objects into a sequence of escaped bytes:
Expand Down
Loading

0 comments on commit 7b8968f

Please sign in to comment.