Pathlib weherever possible 2665#2688
Conversation
…ryptionError (python-telegram-bot#2621) * move telegramdecryptionerror to error.py * Change error class name
…t#2612) * feat: add docs about docs * fix: improve looks * fix: make link work * fix: this looks better * Improved markdown, updated link * Less justifying Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>
* Fix incomplete type annotations for CallbackContext Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
* Feat: Custom pytest marker Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>
* Make basepersistence methods abstractmethod Signed-off-by: starry69 <starry369126@outlook.com> Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
…m-bot#2634) Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com> Co-authored-by: poolitzer <25934244+Poolitzer@users.noreply.github.com>
Poolitzer
left a comment
There was a problem hiding this comment.
You have one failing test here and it actually seems related to your changes. You wanna give it a shot at fixing? I can't recreate it myself sadly, using windows + py3.7, maybe someone else has a plan.
Bibo-Joshi
left a comment
There was a problem hiding this comment.
Thanks for your PR! I left a number of comments an questions :)
Apart from those:
- Please double check that you added versioning directives everywhere where needed.
- Just to clarify: Is there now any parameter that accepts
Pathobjects in addition to what it accepted before? if so, please make sure that the tests cover both cases
Bibo-Joshi
left a comment
There was a problem hiding this comment.
Thanks for the new updates and sorry for making your merge-life harder unintentionally 😬
I think we're pretty much down to nitpicking details :)
…le.py, added a parametrized test_filepath_argument_types in test_persistence.py, and added test_download in test_request.py
Bibo-Joshi
left a comment
There was a problem hiding this comment.
If tests run and @harshil21 approves as well, we can merge :)
|
@Bibo-Joshi can you please role back your push to this branch? i can't push my changes, and some of yours i think break the test. edit: reverted. |
…eldbud/python-telegram-bot into pathlib-weherever-possible-2665
This reverts commit 96af7a6.
|
The failures where unrelated. I've reverted the reversion 😉 |
did you make sure the test passes? this is how i initially wrote it and it failed. Does this not happen to you? |
|
@eldbud I removed |
|
Thank you for this contribution @eldbud ! Nice work :) |
Refactored usage of
strobjects and/orosmodule can be replaced withpathlib.Pathacross the project.Hopefully managed to find all places in the project that can be updated.