pdoc
pdoc copied to clipboard
Dataclass arguments should not be interpreted as static members
Expected Behavior
Dataclass arguments/attributes should display as instance variables
Actual Behavior
Instead they appear as static variables
Steps to Reproduce
- Create a simple dataclass. e.g.
from dataclasses import dataclass
@dataclass
class Foo:
bar: int
- Run pdoc
- Observe that the
barvariable shows up as static
Additional info
- pdoc version: 0.10.0