You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
This is a wrong program to write and we don't raise an error.
#1639
Reviewed By: rchen152
Differential Revision: D87591372
fbshipit-source-id: 9aedb275941b02b9b70d9008e0d3564e0eb461ae
Copy file name to clipboardExpand all lines: pyrefly/lib/test/pydantic/base_settings.rs
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,3 +29,18 @@ os.environ["PORT"] = "8080"
29
29
config = AppConfig() # E: Missing argument `database_url` in function `AppConfig.__init__` # E: Missing argument `api_key` in function `AppConfig.__init__` # E: Missing argument `port` in function `AppConfig.__init__`
30
30
"#,
31
31
);
32
+
33
+
pydantic_testcase!(
34
+
bug = "This is not a correct program to write since a model cannot be both a BaseSettings and a RootModel",
0 commit comments