Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Incorrect pname properties created by api command #525

Closed
@lars-reimann

Description

@lars-reimann

Describe the bug

The api command creates incorrect pname properties for methods:

"qname": "sklearn.gaussian_process.kernels.Exponentiation.__call__.eval_gradient",
"pname": "sklearn/sklearn.gaussian_process.kernels/Exponentiation__call__/eval_gradient",

Notice the missing slash in Exponentiation__call__.

To Reproduce

Steps to reproduce the behavior:

  1. Run the api command:
cd package_parser
poetry run parse-package api -p sklearn -o out
  1. Check the pname property of methods.

Expected behavior

This should be created instead:

"qname": "sklearn.gaussian_process.kernels.Exponentiation.__call__.eval_gradient",
"pname": "sklearn/sklearn.gaussian_process.kernels/Exponentiation/__call__/eval_gradient",

Metadata

Metadata

Assignees

Labels

bug 🪲Something isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions