Closed haoxins closed 7 months ago
BTW, it seems that we don't use @property
annotation in this package?
I prefer the way of using @property
.
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
91afe1b
) 77.83% compared to head (e0e974a
) 77.84%.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
BTW, it seems that we don't use
@property
annotation in this package?I prefer the way of using
@property
.
Yes, this project was not initiated by pythonista, let's polish it together, feel free to drop PR on doing so!
BTW, it seems that we don't use
@property
annotation in this package? I prefer the way of using@property
.Yes, this project was not initiated by pythonista, let's polish it together, feel free to drop PR on doing so!
done
Sorry, after revisiting for a while, I think it's better not change .tags from a function into a @property
.
My suggestions would be:
@property
)@property
for getters in next major version(that such break change is accepted) and to avoid breaking our user code.What do you think @haoxins , please?
Sorry, after revisiting for a while, I think it's better not change .tags from a function into a
@property
.
- It's an API break change
- Relationship.edge_name and a bunch of other functions are in similar situations, we should either change or left unchanged to maintain consistency of the design
My suggestions would be:
- leave those getter functions function(without
@property
)- optionally introduce _foo @Property like Node._tags, Relationship._edge_name etc.
- Use
@property
for getters in next major version(that such break change is accepted) and to avoid breaking our user code.What do you think @haoxins , please?
I had the same concerns before I pushed the commit.
I will just revert the commit for this PR
I want to do more naming changes in the future, will give a list in a Github issue.
Use @property for getters in next major version(that such break change is accepted) and to avoid breaking our user code.
Yes, this project was not initiated by pythonista, let's polish it together, feel free to drop PR on doing so!
I think we can start a Github issue to track the changes that make this package more Pythonic
.
Use @Property for getters in next major version(that such break change is accepted) and to avoid breaking our user code.
Yes, this project was not initiated by pythonista, let's polish it together, feel free to drop PR on doing so!
I think we can start a Github issue to track the changes that make this package more
Pythonic
.
Yes, let's do it!!!
Sorry, after revisiting for a while, I think it's better not change .tags from a function into a
@property
.
- It's an API break change
- Relationship.edge_name and a bunch of other functions are in similar situations, we should either change or left unchanged to maintain consistency of the design
My suggestions would be:
- leave those getter functions function(without
@property
)- optionally introduce _foo @Property like Node._tags, Relationship._edge_name etc.
- Use
@property
for getters in next major version(that such break change is accepted) and to avoid breaking our user code.What do you think @haoxins , please?
I had the same concerns before I pushed the commit.
I will just revert the commit for this PR
I want to do more naming changes in the future, will give a list in a Github issue.
Please drop the main list issue as RFC ♥️.
cc @Nicole00
@Nicole00 take a look?
Sorry for introducing this in #302
What type of PR is this?
What problem(s) does this PR solve?
Issue(s) number:
Description:
How do you solve it?
Special notes for your reviewer, ex. impact of this fix, design document, etc: