Skip to content

Commit

Permalink
no dataclass
Browse files Browse the repository at this point in the history
  • Loading branch information
keithasaurus committed Nov 22, 2023
1 parent f89f813 commit d6dc61d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions simple_html/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from dataclasses import dataclass
from html import escape
from types import GeneratorType
from typing import Tuple, Union, Dict, List, Generator, Optional


@dataclass(slots=True)
class SafeString:
safe_str: str
__slots__ = ('safe_str',)

def __init__(self, safe_str: str) -> None:
self.safe_str = safe_str


Node = Union[
Expand Down

0 comments on commit d6dc61d

Please sign in to comment.