Skip to content

Instantly share code, notes, and snippets.

View Zomatree's full-sized avatar
:fishsticks:

Angelo Kontaxis Zomatree

:fishsticks:
View GitHub Profile
@maxerium
maxerium / btmc-skin-doc.md
Last active April 15, 2023 10:06
BTMC's Skins

BTMC's Skin Overview/List

This will always be kept up-to-date. (Current Revision: 1.4, 03rd November 2020)

The list is maintained by maxi#0666. If anything is broken or missing, please DM me on Discord. Thank you!

This skin list is not up-to-date anymore. Head over to this site for the actual document.

@Zomatree
Zomatree / serde.py
Last active December 28, 2022 22:49
from __future__ import annotations
from dataclasses import dataclass
from types import NoneType, UnionType
from typing import Annotated, Any, Callable, Generic, Iterable, TypeGuard, TypeVar, Union, cast, get_origin as _get_origin, get_args, Self
T = TypeVar("T")
# isistance doesnt allow the second paramter to be generic so we must get the origin, however typing.get_origin doesnt return the class if its not generic
# so we default back to the type ourself