-
Notifications
You must be signed in to change notification settings - Fork 11
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
feat: add type hints to core lib #71
Conversation
Hey @khvn26 @matthewelwell can you run the workflows, please :) |
Thanks so much! one of the team will take a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @tushar5526 thanks a lot for putting this review together.
I'm on the Flagsmith team, but I haven't touched this repository before, so I can't run the workflows you requested from Kim and Matt. They're heads down for a project for the next week, but I'll see if someone else can run the workflows and maybe we'll get lucky.
I've added a bunch of review comments, but please keep in mind that I don't have full visibility on this project.
Feel free to push back on any of them that don't make sense 😄
@tushar5526 Let us know if you need help merging this — we're working on a task involving the Python client and would love to include typing in the next release. |
@khvn26 thanks, I will probably get sometime this weekend before I work on this :) |
Co-authored-by: Kim Gustyr <[email protected]>
Co-authored-by: Kim Gustyr <[email protected]>
Hey @khvn26 @matthewelwell Happy New Year! Need some help with Python 3.8 and 3.9. Got an issue with inheritance in dataclasses. |
Hey @tushar5526! The good solution to this is to define the field individually in the subclasses. I've done it in my PR here: https://github.com/Flagsmith/flagsmith-python-client/pull/72/files#diff-90b21583a0688d12b6b9a8d2970969907e7d49546b5f953ac1cfb61d14111518 The PR I've linked to is ready to merge. I suggest you rebase #71 on the main branch after #72 is merged. Other than that, there's one outstanding comment that needs resolving. After that we'll finally merge your PR 👍 |
@tushar5526 apologies for the delay on this but could you take a look at the failing unit tests or would you like one of us to pick it up? |
@matthewelwell I forgot about this, was waiting for #72 to be merged. I believe I can rebase on top of it and fix the tests. |
@matthewelwell @tushar5526 #72 merged! Feel free to rebase and fix stuff! |
Fixed! |
@tushar5526 Hello again! I've just rebased the actual target branch on latest main. Hate to ask you, but could you rebase your branch again? |
Fixed the conflicts. |
* feat: add mypy, update tooling * feat: add type hints to core lib (#71) --------- Co-authored-by: Tushar <[email protected]> Co-authored-by: Zach Aysan <[email protected]>
Related to #40