pyx/scratch.py
2025-08-15 16:16:47 -04:00

21 lines
411 B
Python

from dataclasses import dataclass, field
from typing import Optional, Dict, Tuple, List
class Bracket():
def __init__(self, *args: str):
self.children = list(args)
@dataclass
class StyledTag(Bracket):
style: Optional[str] = None
other: Optional[str] = None
def Test(*children:str, css:Optional[str]=None, ):
print(css)
print(children)
Test("itme1", "item2", css="yo")