When using native subclassing API, the docs demonstrate how to create a float array property, but there is no talk of TDictionaries or TSets. Are those possible yet?
Furthermore I have not been able to create a function which takes an array either. I tried list, list(str) and [str], but list isn't supported altogether (missing __args__ attribute) and [str] cannot be parsed (leaving the parameter ignored). Is this not possible yet?
For the function param stuff, see PR #635 for an unofficial patch that adds support for it. Unsupported, but we've been using it in our project for awhile and it's worked well for us. With the patch you can have e.g.:
defFoo(stuff : [str]) -> [bool]:
...
for a function that takes an array of strings and returns an array of bools.
Activity
dfb commented on Mar 3, 2019
For the function param stuff, see PR #635 for an unofficial patch that adds support for it. Unsupported, but we've been using it in our project for awhile and it's worked well for us. With the patch you can have e.g.:
for a function that takes an array of strings and returns an array of bools.