| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #934 +/- ##
==========================================
+ Coverage 91.63% 91.78% +0.15%
==========================================
Files 23 23
Lines 4279 4348 +69
==========================================
+ Hits 3921 3991 +70
+ Misses 358 357 -1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Sorry, something went wrong.
Mostly from python/typeshed#9455 Co-authored-by: Spencer Brown <spencerb21@live.com>
There was a problem hiding this comment.
Thanks for putting this work in!
I made a bunch of suggestions around readability (you can probably use GitHub's "commit suggestions in batch" thing to apply them), and then there were some somewhat suspect types wrt. docstrings.
Sorry, something went wrong.
Co-authored-by: Aarni Koskela <akx@iki.fi>
* Added more type annotations to checkers.py * Changed str to Final[str] * Added parse_template_string option * Type aliases for extraction results
* Fix Final on Python 3.7 (use typing_extensions) * Change po fileobj type * overload get_territory_currencies return type
This is a good start, maybe we can consider running Black on the whole project to give it some consistency? |
Sorry, something went wrong.
There was a problem hiding this comment.
@DenverCoder1 Let's ship this! ... Can you merge/rebase once more with #943 in?
Sorry, something went wrong.
There was a problem hiding this comment.
🚀
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR adds inline type annotations to the public methods and classes in Babel.
This PR tries to focus on only adding correct type annotations. There are still some Pyright warnings due to non-type-safe implementations which can be fixed at a later time.
Most of the annotations have already been reviewed and approved by typeshed.
Tested on Python 3.7 - 3.11