Closed phgz closed 1 year ago
@philipGaudreau Hmmmm this should have been caught by unit tests if something changed in a release... Working on seeing why it isn't covered and seeing what patch is needed.
In the mean time, try using:
@spock
class TypeConfig:
param: List[List[str]] = [[],[]]
It won't check length like Tuple
would but it will give you almost the exact same functionality for the time being until I path this...
Describe the bug When trying to reproduce an example from https://fidelity.github.io/spock/advanced_features/Advanced-Types#nested-list-tuple-and-dict-types, I get an error saying that
Subscripted generics cannot be used with class and instance checks
.To Reproduce Steps to reproduce the behavior:
from spock import SpockBuilder from spock.config import spock
@spock class TypeConfig: param: Tuple[List[str], List[str]] = ([],[])
config = SpockBuilder(TypeConfig).generate()
Environment (please complete the following information):