Skip to content

Commit c4f93df

Browse files
committed
Add TODO
1 parent 7ab98df commit c4f93df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/ty_python_semantic/resources/mdtest/dataclasses.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,7 @@ python-version = "3.12"
838838
```py
839839
from dataclasses import dataclass
840840
from typing import Callable
841+
from types import FunctionType
841842
from ty_extensions import TypeOf, static_assert, is_subtype_of, is_assignable_to
842843

843844
@dataclass
@@ -859,4 +860,8 @@ static_assert(is_assignable_to(DunderInitType, EquivalentCallableType))
859860

860861
static_assert(not is_subtype_of(EquivalentCallableType, DunderInitType))
861862
static_assert(not is_assignable_to(EquivalentCallableType, DunderInitType))
863+
864+
# TODO:
865+
# error: [static-assert-error]
866+
static_assert(is_subtype_of(DunderInitType, FunctionType))
862867
```

0 commit comments

Comments
 (0)