-
Notifications
You must be signed in to change notification settings - Fork 233
[pyoutline] Layer module cleanup #2073
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
base: master
Are you sure you want to change the base?
[pyoutline] Layer module cleanup #2073
Conversation
…eserving autocompletion
|
Thank you for the PR. Really nice to have proper completion when building outlines. Otherwise it looks good to me. |
|
Hey there! Thanks for taking the time to look at that pretty big chunk of diffs. Regarding the layer types, if you're referring to the line The That said, it makes sense to keep the annotation type alongside the existing constants, so I’ll move the type alias there. One thing to flag, though: the name I'll address the changes. Let me know. |
|
Not 100% optimal, but better to have them all in the same place at least. For compatibility reasons it will have to be like this until we depricate |
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.
I will approve it, but would prefer that @ramonfigueiredo or @DiegoTavares also have a quick look at it if possible before merging.
|
Hey @lithorus , in that case, may I suggest to get back to my original intention that was to move to a string enum ? Here's the initial diff: 045903d I moved away from that proposal as I felt it was getting a bit too intrusive and not related to cosmetics and completion changes I wanted this PR to be about. |
Yeah, I liked that one much better when reviewing the commits. |
Summary.
Surface cleanup and typing annotation of the layer module.
Changes
Rational
Note to reviewers
PR can be reviewed per commit for smaller scoped diffs.
Those are only typing and syntax improvements. No change in behavior should occur.