-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- create separate pytype for ARC4Tuple (in future probably want to do…
… the same for structs) - introduce pytypes.TupleLikeType that captures both native and ARC4Tuples - make a NamedTupleType subclass of TupleType that exposes a `fields` property which is easier to create & consume - use NamedTuple for pre-compiled data structures - correct implicit arc4 conversion to use iterate_static, which also ensure single evaluation - introduce pytype for NamedTupleBaseType - this is somewhat of a lie, since typing.NamedTuple is not actually part of MRO at runtime due to Python magic, but it's a good lie because it allows resolving expression and type builders for NamedTuple without any hackery - fixing some error messages to start with lower case - expose concrete types on WType and PyType classes, this simplifies some things and Sequence/Mapping was mostly used as shorthand - add some negative tests for NamedTuple scenarios - general refactoring of new NamedTuple feature
- Loading branch information
1 parent
6b28f8b
commit eaf2700
Showing
30 changed files
with
734 additions
and
869 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
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.