Skip to content

Commit 8db0e6e

Browse files
committed
TODO comment regarding dataclass-transformer signature
1 parent 849b6e2 commit 8db0e6e

File tree

1 file changed

+3
-0
lines changed
  • crates/red_knot_python_semantic/src

1 file changed

+3
-0
lines changed

crates/red_knot_python_semantic/src/types.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3450,6 +3450,9 @@ impl<'db> Type<'db> {
34503450
))
34513451
}
34523452

3453+
// TODO: We should probably also check the original return type of the function
3454+
// that was decorated with `@dataclass_transform`, to see if it is consistent with
3455+
// with what we configure here.
34533456
Type::DataclassTransformer(_) => Signatures::single(CallableSignature::single(
34543457
self,
34553458
Signature::new(

0 commit comments

Comments
 (0)