Skip to content

Commit 190bbc8

Browse files
Merge pull request #65 from codecov/joseph/add-interface
feat: add pyi file for type hints in python
2 parents cc76ca7 + bfadc7a commit 190bbc8

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

py.typed

Whitespace-only changes.

test_results_parser.pyi

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from typing import TypedDict, Literal
2+
3+
class Testrun(TypedDict):
4+
name: str
5+
classname: str
6+
duration: float | None
7+
outcome: Literal["pass", "failure", "skip", "error"]
8+
testsuite: str
9+
failure_message: str | None
10+
filename: str | None
11+
build_url: str | None
12+
computed_name: str | None
13+
14+
15+
class ParsingInfo(TypedDict):
16+
framework: Literal["Pytest", "Jest", "Vitest", "PHPUnit"]
17+
testruns: list[Testrun]
18+
19+
20+
def parse_raw_upload(raw_upload_bytes: bytes) -> tuple[list[ParsingInfo], bytes]: ...

0 commit comments

Comments
 (0)