Closed melissawm closed 7 months ago
linspace is a bad example - no signature is being collected by gen at all (which I suspect is also a bug?)
However, numpy.loadtxt gets a signature in the json file and results in the same error as above:
"signature": {
"kind": "function",
"parameters": [
{
"annotation": {
"type": "Empty"
},
"default": {
"type": "Empty"
},
"kind": "POSITIONAL_OR_KEYWORD",
"name": "fname",
"type": "ParameterNode"
},
{
"annotation": {
"type": "Empty"
},
"default": {
"data": "<class 'float'>",
"type": "str"
},
"kind": "POSITIONAL_OR_KEYWORD",
"name": "dtype",
"type": "ParameterNode"
},
{
"annotation": {
"type": "Empty"
},
"default": {
"data": "#",
"type": "str"
},
"kind": "POSITIONAL_OR_KEYWORD",
"name": "comments",
"type": "ParameterNode"
},
{
"annotation": {
"type": "Empty"
},
"default": {
"data": "None",
"type": "str"
},
"kind": "POSITIONAL_OR_KEYWORD",
"name": "delimiter",
"type": "ParameterNode"
},
{
"annotation": {
"type": "Empty"
},
"default": {
"data": "None",
"type": "str"
},
"kind": "POSITIONAL_OR_KEYWORD",
"name": "converters",
"type": "ParameterNode"
},
{
"annotation": {
"type": "Empty"
},
"default": {
"data": "0",
"type": "str"
},
"kind": "POSITIONAL_OR_KEYWORD",
"name": "skiprows",
"type": "ParameterNode"
},
{
"annotation": {
"type": "Empty"
},
"default": {
"data": "None",
"type": "str"
},
"kind": "POSITIONAL_OR_KEYWORD",
"name": "usecols",
"type": "ParameterNode"
},
{
"annotation": {
"type": "Empty"
},
"default": {
"data": "False",
"type": "str"
},
"kind": "POSITIONAL_OR_KEYWORD",
"name": "unpack",
"type": "ParameterNode"
},
{
"annotation": {
"type": "Empty"
},
"default": {
"data": "0",
"type": "str"
},
"kind": "POSITIONAL_OR_KEYWORD",
"name": "ndmin",
"type": "ParameterNode"
},
{
"annotation": {
"type": "Empty"
},
"default": {
"data": "bytes",
"type": "str"
},
"kind": "POSITIONAL_OR_KEYWORD",
"name": "encoding",
"type": "ParameterNode"
},
{
"annotation": {
"type": "Empty"
},
"default": {
"data": "None",
"type": "str"
},
"kind": "POSITIONAL_OR_KEYWORD",
"name": "max_rows",
"type": "ParameterNode"
},
{
"annotation": {
"type": "Empty"
},
"default": {
"data": "None",
"type": "str"
},
"kind": "KEYWORD_ONLY",
"name": "quotechar",
"type": "ParameterNode"
},
{
"annotation": {
"type": "Empty"
},
"default": {
"data": "None",
"type": "str"
},
"kind": "KEYWORD_ONLY",
"name": "like",
"type": "ParameterNode"
}
],
"return_annotation": {
"type": "Empty"
},
"type": "SignatureNode"
},
Following the Readme instructions for using papyri as an IPython extension, I get the following output: