Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
00250bb
fix(perf): skip traversing types for NotGiven values
stainless-app[bot] Apr 12, 2025
4ce95f7
fix(perf): optimize some hot paths
stainless-app[bot] Apr 12, 2025
c1a4b25
chore(internal): update pyright settings
stainless-app[bot] Apr 15, 2025
b4af709
chore(client): minor internal fixes
stainless-app[bot] Apr 15, 2025
b56ec6c
chore(internal): bump pyright version
stainless-app[bot] Apr 17, 2025
7e7f8c5
chore(internal): base client updates
stainless-app[bot] Apr 17, 2025
4e84f01
chore(internal): update models test
stainless-app[bot] Apr 19, 2025
f51cedc
chore(ci): add timeout thresholds for CI jobs
stainless-app[bot] Apr 23, 2025
bb1b5a8
chore(internal): import reformatting
stainless-app[bot] Apr 23, 2025
12bba1b
chore(internal): fix list file params
stainless-app[bot] Apr 23, 2025
af64ff0
chore(internal): refactor retries to not use recursion
stainless-app[bot] Apr 23, 2025
c16373d
fix(pydantic v1): more robust ModelField.annotation check
stainless-app[bot] Apr 23, 2025
317b682
feat(api): api update
stainless-app[bot] Apr 23, 2025
1f83169
chore(internal): minor formatting changes
stainless-app[bot] Apr 24, 2025
3719d1b
chore(internal): codegen related update
stainless-app[bot] Apr 24, 2025
6c155eb
chore(ci): only use depot for staging repos
stainless-app[bot] Apr 24, 2025
3bff15d
chore: broadly detect json family of content-type headers
stainless-app[bot] Apr 24, 2025
d281683
codegen metadata
stainless-app[bot] Apr 24, 2025
8cfc989
feat(api): api update
stainless-app[bot] Apr 30, 2025
0f46ea8
codegen metadata
stainless-app[bot] May 8, 2025
79c1774
chore(internal): avoid errors for isinstance checks on proxies
stainless-app[bot] May 9, 2025
e082d60
fix(package): support direct resource imports
stainless-app[bot] May 10, 2025
eef43f5
codegen metadata
stainless-app[bot] May 12, 2025
8fda6da
feat(api): api update
stainless-app[bot] May 13, 2025
c07ffc7
codegen metadata
stainless-app[bot] May 13, 2025
f1879ec
codegen metadata
stainless-app[bot] May 13, 2025
da9ab06
codegen metadata
stainless-app[bot] May 14, 2025
ed6c603
chore(ci): upload sdks to package manager
stainless-app[bot] May 15, 2025
02f7bb0
chore(ci): fix installation instructions
stainless-app[bot] May 16, 2025
78f5da8
codegen metadata
stainless-app[bot] May 17, 2025
dc90fe3
feat(api): api update
stainless-app[bot] May 19, 2025
59323c4
codegen metadata
stainless-app[bot] May 20, 2025
8f09ac8
chore(docs): grammar improvements
stainless-app[bot] May 22, 2025
18a5eaf
feat(api): api update
stainless-app[bot] May 23, 2025
07d802a
feat(api): api update
stainless-app[bot] May 24, 2025
558ab83
feat(api): api update
stainless-app[bot] May 27, 2025
84767d7
feat(api): api update
stainless-app[bot] May 27, 2025
179cefd
release: 5.4.0
stainless-app[bot] May 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore(internal): update models test
  • Loading branch information
stainless-app[bot] committed Apr 19, 2025
commit 4e84f01f5b52e119f73cab72e4ea3ceaa1889e42
3 changes: 3 additions & 0 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,12 +492,15 @@ class Model(BaseModel):
resource_id: Optional[str] = None

m = Model.construct()
assert m.resource_id is None
assert "resource_id" not in m.model_fields_set

m = Model.construct(resource_id=None)
assert m.resource_id is None
assert "resource_id" in m.model_fields_set

m = Model.construct(resource_id="foo")
assert m.resource_id == "foo"
assert "resource_id" in m.model_fields_set


Expand Down