[ghstack-poisoned]
This commit is contained in:
Xuehai Pan 2025-02-09 22:38:05 +08:00
commit c105339baa
3 changed files with 5 additions and 4 deletions

View file

@ -32,10 +32,7 @@ from fx.test_fx_const_fold import TestConstFold # noqa: F401
from fx.test_fx_param_shape_control_flow import ( # noqa: F401
TestConstParamShapeInControlFlow,
)
from fx.test_gradual_type import ( # noqa: F401 # noqa: F401
AnnotationsTest,
TypeCheckerTest,
)
from fx.test_gradual_type import AnnotationsTest, TypeCheckerTest # noqa: F401
from fx.test_matcher_utils import TestMatcher # noqa: F401
from fx.test_pass_infra import TestPassManager # noqa: F401
from fx.test_source_matcher_utils import TestSourceMatcher # noqa: F401

View file

@ -992,6 +992,8 @@ def treespec_loads(serialized: str) -> TreeSpec:
class _Asterisk(str):
__slots__ = ()
def __new__(cls) -> Self:
return super().__new__(cls, "*")

View file

@ -1634,6 +1634,8 @@ def treespec_loads(serialized: str) -> TreeSpec:
class _Asterisk(str):
__slots__ = ()
def __new__(cls) -> Self:
return super().__new__(cls, "*")