Comments (5)
Sorry about the delay on this. I believe the Notes
section needs to be removed from the multi-merge-able sections introduced in #31. Furthermore, we need to add testing / documentation for the expected behavior with multiple inheritance.
from custom_inherit.
I think I'm seeing the same bug. My example is a little different using v2.3.2:
from dataclasses import dataclass
from custom_inherit import DocInheritMeta
@dataclass
class A(metaclass=DocInheritMeta(style='numpy_napoleon_with_merge')):
"""Testing A.
Parameters
----------
a :
parameter a.
b :
parameter b.
c :
parameter c.
Returns
-------
"""
a: str = 'a'
b: str = 'b'
c: str = 'c'
@dataclass
class B(A):
"""Testing B.
Parameters
----------
d :
parameter d.
e :
parameter e.
f :
parameter f.
Returns
-------
"""
d: str = 'd'
e: str = 'e'
f: str = 'f'
@dataclass
class C(B):
"""Testing C.
Parameters
----------
g :
parameter g.
h :
parameter h.
i :
parameter i.
Returns
-------
"""
g: str = 'g'
h: str = 'h'
i: str = 'i'
Run this with python -c 'from testing import C; print(C.__doc__)'
shows
Testing C.
Parameters
----------
a :
parameter a.
b :
parameter b.
c :
parameter c.
a :
parameter a.
b :
parameter b.
c :
parameter c.
d :
parameter d.
e :
parameter e.
f :
parameter f.
g :
parameter g.
h :
parameter h.
i :
parameter i.
Returns
-------
where the a, b, c from the parent repeated.
from custom_inherit.
This was not quite resolved. But will be imminently
from custom_inherit.
@ickc @abeelen this has been fixed in v2.4.0
which is now available on pypi (and will be available on conda-forge within the next couple of days).
Apologies for these issues and for the slow response.
from custom_inherit.
No problem at all and thanks for the updates. I'll test it soon and if there's further problem I'll let you know.
from custom_inherit.
Related Issues (18)
- Show-stopping bug HOT 1
- Google-style functions using "Args:" are inherited with "Parameters:" HOT 2
- Documentation HOT 2
- Cannot remove parameters HOT 5
- It does not work with multiple inheritance (mixins) HOT 7
- Transferring ownership
- Within-Field Docstring Merging HOT 7
- Conda-Forge Package HOT 3
- Make readthedocs page HOT 4
- custom_inherit 3.0 will drop support for Python < 3.5
- Allow docstring of __init__ to also inherit from the parent class HOT 2
- Inherit docstrings from Zope Interfaces HOT 2
- class docstring with 'numpy_merge' section order HOT 2
- Fix _Store
- Whitespace stripped with numpy style causes trouble HOT 2
- Merging a google docstring with a numpy docstring
- Problem when merging with flake8 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from custom_inherit.