|
@@ -5,7 +5,6 @@ import re
|
|
|
from copy import copy, deepcopy
|
|
|
from pathlib import Path
|
|
|
from typing import TYPE_CHECKING, Any, Callable, Dict, Iterator, List, Optional, Sequence, Union
|
|
|
-import mimetypes
|
|
|
|
|
|
from typing_extensions import Self
|
|
|
|
|
@@ -23,8 +22,6 @@ if TYPE_CHECKING:
|
|
|
|
|
|
PROPS_PATTERN = re.compile(r'([:\w\-]+)(?:=(?:("[^"\\]*(?:\\.[^"\\]*)*")|([\w\-.%:\/]+)))?(?:$|\s)')
|
|
|
|
|
|
-mimetypes.add_type('application/javascript', '.js')
|
|
|
-mimetypes.add_type('text/css', '.css')
|
|
|
|
|
|
class Element(Visibility):
|
|
|
component: Optional[Component] = None
|