8000 rename to result? · Issue #9 · davidohnee/cevlib · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
rename to result? #9
Open
Open
@github-actions

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) ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0