metaopt / optree

OpTree: Optimized PyTree Utilities
https://optree.readthedocs.io
Apache License 2.0
136 stars 6 forks source link

feat(typing): better type annotation for type alias #7

Closed XuehaiPan closed 1 year ago

XuehaiPan commented 1 year ago

Ref #6

codecov-commenter commented 1 year ago

Codecov Report

Base: 90.31% // Head: 87.26% // Decreases project coverage by -3.05% :warning:

Coverage data is based on head (edd1bbd) compared to base (6543be5). Patch coverage: 59.37% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #7 +/- ## ========================================== - Coverage 90.31% 87.26% -3.06% ========================================== Files 6 6 Lines 289 314 +25 ========================================== + Hits 261 274 +13 - Misses 28 40 +12 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `87.26% <59.37%> (-3.06%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=metaopt#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/metaopt/optree/pull/7?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=metaopt) | Coverage Δ | | |---|---|---| | [optree/typing.py](https://codecov.io/gh/metaopt/optree/pull/7/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=metaopt#diff-b3B0cmVlL3R5cGluZy5weQ==) | `69.44% <58.06%> (-9.28%)` | :arrow_down: | | [optree/\_\_init\_\_.py](https://codecov.io/gh/metaopt/optree/pull/7/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=metaopt#diff-b3B0cmVlL19faW5pdF9fLnB5) | `100.00% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=metaopt). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=metaopt)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.