Skip to content

Commit 038f56c

Browse files
committed
add comment with explanation
1 parent 58f37af commit 038f56c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/validators/test_dataclasses.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,6 +1664,9 @@ def __post_init__(self):
16641664
[
16651665
*init_test_cases,
16661666
# special case - allow override of default, even when init=False, if extra='allow'
1667+
# TODO: we haven't really decided if this should be allowed or not
1668+
# currently, it's disallowed in Pydantic to have a model with extra='allow'
1669+
# and a field with init=False, so this case isn't really possible at the momment
16671670
({'a': 'hello', 'b': 'bye'}, 'allow', {'a': 'hello', 'b': 'bye'}),
16681671
],
16691672
)

0 commit comments

Comments
 (0)