-
Notifications
You must be signed in to change notification settings - Fork 1.5k
BUG: fix for merge page with annotation #3467 #3532
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: main
Are you sure you want to change the base?
Conversation
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.
Please have a look at the test failures and add appropriate tests.
Additionally, while your current approach might work for the current cases, I see some limitations/aspects to discuss:
- What happens to keyword-only arguments?
- What happens to unmatched keys?
- What happens to keys which have to be renamed for some reasons, for example because they conflict with an existing name (like a builtin)?
Please provide some details on how you think about this and what your proposals for mitigating them are.
it does not work in a small example, but inspect does support matching on keyword arguments in a different
they are not passed along to
good point. i will think on this. i am thinking of having some internal value in |
|
i made changes to the pull request based on feedback. i still need to implement automated test, as well as research renaming keys. i have converted the pull request to a draft and will change the pull request when it is ready for review again. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3532 +/- ##
=======================================
Coverage 97.15% 97.16%
=======================================
Files 56 56
Lines 9785 9814 +29
Branches 1785 1790 +5
=======================================
+ Hits 9507 9536 +29
Misses 167 167
Partials 111 111 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…fixMergePageBug#3467
|
i have introduced changes based on feedback. i still need to think about a solution to the keys conflicting with python builtins. |
|
i have implemented possible solution for renaming keyword args. @stefan6419846 it is available to review when you are ready. for the
|
see #3467
there are a couple different solutions. this is the one i made.
for my solution, i have to assume that the key name inside
DictionaryObject==__init__parameter names. for example/Verticesandvertices. with these changes the example in #3467 exits normally.i had to modify the
__init__logic forPolygonandPolyLine, as they both expectedtuples which is not the format they are stored inDictionaryObjectif we agree this is acceptable solution, i will also add test case adapted from the issue.