Replies: 1 comment
-
|
Thanks, should be fixed in 1b6b053, I'll release a new version. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I cannot get dump of numpy package, constently gain error of "AttributeError: 'Attribute' object has no attribute 'parameters'", can someone help me figure it out?
Some information:
I have tried multiple numpy versions and also python versions of 3.12 and 3.14.
I have installed griffe with griffe[pypi] at version of 2.0.2 by uv.
uv install log
➜ playground uv venv --python 3.14Using CPython 3.14.3
➜ playground source .venv/bin/activate
➜ playground uv pip install "griffe[pypi]"
Resolved 8 packages in 594ms
Prepared 2 packages in 89ms
Installed 8 packages in 15ms
the detail logs of the error are as below:
detail logs
python
Python 3.14.3 (main, Feb 12 2026, 00:42:54) [Clang 21.1.4 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "", line 1, in
griffe.load_pypi("numpy",distribution="numpy",version_spec="==2.3.1")
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/playground/.venv/lib/python3.14/site-packages/griffe/_internal/loader.py", line 1043, in load_pypi
return load(
package,
...<13 lines>...
resolve_implicit=resolve_implicit,
)
File "/root/playground/.venv/lib/python3.14/site-packages/griffe/_internal/loader.py", line 841, in load
result = loader.load(
objspec,
...<2 lines>...
find_stubs_package=find_stubs_package,
)
File "/root/playground/.venv/lib/python3.14/site-packages/griffe/_internal/loader.py", line 190, in load
top_module = self._load_package(package, submodules=submodules)
File "/root/playground/.venv/lib/python3.14/site-packages/griffe/_internal/loader.py", line 540, in _load_package
top_module = self._load_module(package.name, package.path, submodules=submodules)
File "/root/playground/.venv/lib/python3.14/site-packages/griffe/_internal/loader.py", line 563, in _load_module
return self._load_module_path(module_name, module_path, submodules=submodules, parent=parent)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/playground/.venv/lib/python3.14/site-packages/griffe/_internal/loader.py", line 595, in _load_module_path
self._load_submodules(module)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/root/playground/.venv/lib/python3.14/site-packages/griffe/_internal/loader.py", line 600, in _load_submodules
self._load_submodule(module, subparts, subpath)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/playground/.venv/lib/python3.14/site-packages/griffe/_internal/loader.py", line 651, in _load_submodule
parent_module.set_member(submodule_name, submodule)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/playground/.venv/lib/python3.14/site-packages/griffe/_internal/mixins.py", line 199, in set_member
value = merge_stubs(member, value) # ty:ignore[invalid-argument-type]
File "/root/playground/.venv/lib/python3.14/site-packages/griffe/_internal/merger.py", line 169, in merge_stubs
_merge_module_stubs(module, stubs)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/root/playground/.venv/lib/python3.14/site-packages/griffe/_internal/merger.py", line 20, in _merge_module_stubs
_merge_stubs_overloads(module, stubs)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/root/playground/.venv/lib/python3.14/site-packages/griffe/_internal/merger.py", line 66, in _merge_stubs_overloads
_merge_overload_annotations(obj.get_member(function_name), overloads)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/playground/.venv/lib/python3.14/site-packages/griffe/_internal/merger.py", line 80, in _merge_overload_annotations
for parameter in function.parameters:
^^^^^^^^^^^^^^^^^^^
AttributeError: 'Attribute' object has no attribute 'parameters'
Beta Was this translation helpful? Give feedback.
All reactions