-
-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues 1454 typeddict not required optional bug fix #1457
Issues 1454 typeddict not required optional bug fix #1457
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1457 +/- ##
===========================================
Coverage 100.00% 100.00%
===========================================
Files 11 32 +21
Lines 1020 3565 +2545
Branches 201 837 +636
===========================================
+ Hits 1020 3565 +2545
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Thank you for creating the PR.
You should use |
Thanks for reviewing, cleaning this up, and getting this merged @koxudaxi ! |
TypedDict
keys asNotRequired[Optional]
#1454, see this issue for more detailsmodel.typed_dict.DataModelField
, andDataModelFieldBase
, that only affect how DCG rendersTypedDict
outputTypedDict
, don't force property to be nullable (Optional
) just because it'sNotRequired
tests/data/expected/main/main_typed_dict_not_required_nullable/output.py
andtests/data/jsonschema/not_required_nullable.json
TypedDict
output is still not idealTypedDict
to have bothNotRequired[Optional]
even when a property is explicitly markednullable
and not markedrequired