-
-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with the generated intersphinx objects.inv #849
Comments
It seems that the .. autofunction:: attr.define
.. function:: attr.mutable(same_as_define)
Alias for `attr.define`.
.. versionadded:: 20.1.0
.. function:: attr.frozen(same_as_define)
Behaves the same as `attr.define` but sets *frozen=True* and *on_setattr=None*.
.. versionadded:: 20.1.0
.. autofunction:: attr.field Note how The In #851 I have removed the Expand for probably irrelevant diagnostic commentaryFor the Lines 122 to 123 in 124c20c
But... I tried commenting out |
Sorry and thanks. :) |
I'll take a look and see if I can provide a PR for this.
I have issues with Sphinx and linking to a few attrs docs. Specifically
:mod:`attr`
,:mod:`attrs`
,:func:`attr.frozen`
, and:func:`attr.mutable`
. I used https://pypi.org/project/sphobjinv/ to extract https://www.attrs.org/en/stable/objects.inv and noticed an entire lack of any"role": "mod
as well as thefrozen
andmutable
being listed underattr.attr
.As an example, here's what
sphobjinv
shows for thedataclasses
module.Perhaps created by this.
https://github.com/python/cpython/blame/4e605666b08b8f863cbbbdaa34bb06988e648d26/Doc/library/dataclasses.rst#L4
Here are the seeming import paths for
frozen
andmutable
.attrs/src/attr/__init__.py
Lines 75 to 78 in 124c20c
attrs/src/attr/_next_gen.py
Lines 122 to 123 in 124c20c
(with
define()
defined directly above)I'm not quite sure what part of this would cause the doubled up
attr.attr
bit.The text was updated successfully, but these errors were encountered: