pdoc icon indicating copy to clipboard operation
pdoc copied to clipboard

Dataclass arguments should not be interpreted as static members

Open amin-nejad opened this issue 3 years ago • 0 comments

Expected Behavior

Dataclass arguments/attributes should display as instance variables

Actual Behavior

Instead they appear as static variables

Steps to Reproduce

  1. Create a simple dataclass. e.g.
from dataclasses import dataclass

@dataclass
class Foo:
    bar: int
  1. Run pdoc
  2. Observe that the bar variable shows up as static

Additional info

  • pdoc version: 0.10.0

amin-nejad avatar Jan 05 '22 16:01 amin-nejad