Skip to content

Instantly share code, notes, and snippets.

View symbiont-larry-diehl's full-sized avatar

Larry Diehl symbiont-larry-diehl

View GitHub Profile
JSON = Union[None, bool, str, int, List[JSON], Dict[str, JSON]]
def plenty_o_nuttin(x: bool) -> JSON:
if not x:
return None
else:
return [False, "", 0, {'plenty': ['n', 'u', 't', 't', 'i', 'n']}]