Skip to content

Dataclass arguments should not be interpreted as static members #378

@amin-nejad

Description

@amin-nejad

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions