Skip to content
This repository was archived by the owner on Jan 18, 2026. It is now read-only.
This repository was archived by the owner on Jan 18, 2026. It is now read-only.

rename to result? #9

Description

@github-actions

https://github.com/dxstiny/cevlib/blob/35ec1cd997b1a2d1065d951d10a9dcb593ba421d/cevlib/types/playByPlay.py#L44

    @property
    def type(self) -> PlayType:
        """play type (e.g. block, spike, ...)"""
        return self._type

    @property
    def currentScore(self) -> SetResult: # TODO rename to result?
        """current score at time of play"""
        return self._currentScore

    @property
    def playerName(self) -> str:
        """player that performed that play"""
        return self._playerName

    def __repr__(self) -> str:
        return f"(cevlib.types.playByPlay.Play) {self._type} {self._currentScore} by {self._playerName}" # pylint: disable=line-too-long


class Set(IType):
    """play by play set"""
    def __init__(self, data: JObject) -> None:
        dex = DictEx(data)
        self._plays = [ Play(event) for event in dex.ensure("Events", list) ]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions