You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a note that a contracts-compatible alternative to the :type tag is the :param tag which can incude a doc of the arg as well.
@contractdefwrite_summary(data, outfile, delim='\t'): # data is 2d list
''' writedataasacsv/tsvfiletooutfile.
:typedata: Iterableetc."""
could be written as:
@contractdefwrite_summary(data, outfile, delim='\t'): # data is 2d list''' write data as a csv/tsv file to outfile. :param Iterable data: some docs :param str,!exists outfile: more docs .. etc '''
The text was updated successfully, but these errors were encountered:
Just a note that a
contracts
-compatible alternative to the :type tag is the :param tag which can incude a doc of the arg as well.could be written as:
The text was updated successfully, but these errors were encountered: