Skip to content

Commit

Permalink
Merge pull request #65 from codecov/joseph/add-interface
Browse files Browse the repository at this point in the history
feat: add pyi file for type hints in python
  • Loading branch information
joseph-sentry authored Jan 9, 2025
2 parents cc76ca7 + bfadc7a commit 190bbc8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Empty file added py.typed
Empty file.
20 changes: 20 additions & 0 deletions test_results_parser.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from typing import TypedDict, Literal

class Testrun(TypedDict):
name: str
classname: str
duration: float | None
outcome: Literal["pass", "failure", "skip", "error"]
testsuite: str
failure_message: str | None
filename: str | None
build_url: str | None
computed_name: str | None


class ParsingInfo(TypedDict):
framework: Literal["Pytest", "Jest", "Vitest", "PHPUnit"]
testruns: list[Testrun]


def parse_raw_upload(raw_upload_bytes: bytes) -> tuple[list[ParsingInfo], bytes]: ...

0 comments on commit 190bbc8

Please sign in to comment.