Skip to content

Instantly share code, notes, and snippets.

View Archmonger's full-sized avatar

Mark Bakhit Archmonger

View GitHub Profile
from __future__ import annotations
import re
from pprint import pprint
from typing import Any, Callable, Literal, Awaitable, Union
from dataclasses import dataclass
# >>> React props <<<
# https://beta.reactjs.org/reference/react-dom/components/common#common-props
@Archmonger
Archmonger / html_syntaxes.py
Last active February 9, 2023 10:03
Experimental syntaxes for writing HTML within Python
# type: ignore
# pylint: skip-file
# <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
# <div class="modal-dialog">
# <div class="modal-content">
# modal_header(title="Modal Title")
# modal_body()
# <div class="modal-footer">
# <hr>