App with @dataclass decorator throws AttributeError #1925
Answered
by
davep
davetapley
asked this question in
Q&A
-
I wanted to pass some config in, so I tried: @dataclass
class MyApp(App):
host: str
port: int
MyApp(host, port).run() But that causes:
There might not be a way to workaround it, but it would be nice if it could warn that
|
Beta Was this translation helpful? Give feedback.
Answered by
davep
Mar 2, 2023
Replies: 1 comment 1 reply
-
You may find this entry in the FAQ helpful here. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
davetapley
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may find this entry in the FAQ helpful here.