File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55import copy
66import typing
7- import warnings
87from abc import ABC , abstractmethod
98from functools import lru_cache , wraps
109from hashlib import md5
@@ -170,8 +169,6 @@ def evaluate_style_namespaces(style: ComponentStyle) -> dict:
170169]
171170ComponentChild = Union [types .PrimitiveType , Var , BaseComponent ]
172171
173- warnings .filterwarnings ("ignore" , message = "fields may not start with an underscore" )
174-
175172
176173class Component (BaseComponent , ABC ):
177174 """A component with style, event trigger and other props."""
Original file line number Diff line number Diff line change 1313import re
1414import string
1515import sys
16+ import warnings
1617from types import CodeType , FunctionType
1718from typing import (
1819 TYPE_CHECKING ,
7273
7374VAR_TYPE = TypeVar ("VAR_TYPE" , covariant = True )
7475
76+ warnings .filterwarnings ("ignore" , message = "fields may not start with an underscore" )
77+
7578
7679@dataclasses .dataclass (
7780 eq = False ,
You can’t perform that action at this time.
0 commit comments