Skip to content
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

Dataclass arguments should not be interpreted as static members #378

Open
amin-nejad opened this issue Jan 5, 2022 · 0 comments
Open

Dataclass arguments should not be interpreted as static members #378

amin-nejad opened this issue Jan 5, 2022 · 0 comments

Comments

@amin-nejad
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant