Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GetSetVar = TypeVar('GetSetVar')
TagVar = TypeVarTuple('TagVar')
class MultiField(AbstractField[GetSetVar], Generic[*TagVar]):
def __init__(self, nbt_names: Sequence[str], *, default: GetSetVar = None) -> None:
...
@abc.abstractmethod
def to_python(self, *tags: *TagVar) -> GetSetVar:
...
@abc.abstractmethod
def from_python(self, value: GetSetVar) -> Tuple[*TagVar]:
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment