This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Generate getters/setters that replace null with None (or vice ve…
…rsa) (#29) - Timefold considers None to be initialized, although it represents an uninitialized value - Instead of annotating the fields directly, we could annotate getters/setters instead - If None is assignable to the field type, the getter is `return this.field != None? this.field : null`; otherwise it's `return this.field` - If None is assignable to the field type, the setter is `this.field =(value != null)? value : None`; otherwise it's `this.field = value` - Assign the `__class__` field of a new class to itself to match CPython.
- Loading branch information
1 parent
850ff44
commit d6ad7a1
Showing
5 changed files
with
133 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.