Open kotoroshinoto opened 8 years ago
This is not supported yet.
On Tue, Oct 6, 2015 at 4:21 PM, kotoroshinoto notifications@github.com wrote:
@contract https://github.com/contract(handle='io.TextIOBase', returns='None') def read_file_handle(self, handle: io.TextIOBase) -> 'None':
this errors: contracts.interface.ContractSyntaxError: Unknown identifier 'io'. Did you mean 'np_zeroshape_array'? (at char 0), (line:1, col:1)
— Reply to this email directly or view it on GitHub https://github.com/AndreaCensi/contracts/issues/43.
Same problem here, is there any known workaround ?! Thanks
@contract(handle='io.TextIOBase', returns='None') def read_file_handle(self, handle: io.TextIOBase) -> 'None':
this errors: contracts.interface.ContractSyntaxError: Unknown identifier 'io'. Did you mean 'np_zeroshape_array'? (at char 0), (line:1, col:1)