Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kingdomcome50
on Nov 18, 2023
|
parent
|
context
|
favorite
| on:
Push ifs up and fors down
This is just poor API design. It's that simple. `login` is on the wrong object. I'm not going to write it all out but consider this snippet:
``` def login(self) -> AppClient ```
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
``` def login(self) -> AppClient ```