Skip to content
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

Fix typing issues of StringSetFlag #107

Merged
merged 2 commits into from
Jan 5, 2022
Merged

Conversation

achimnol
Copy link
Member

@achimnol achimnol commented Jan 5, 2022

* Selectively ignore override errors as this is a custom class
* Use a separate interface declaration file (.pyi) by refactoring out
  StringSetFlag class from the utils module to overcome limitation of
  mypy semantic analysis on "__ror__ = __or__" in subclasses of
  Enum/Flag classes.
@achimnol achimnol added this to the 21.03 milestone Jan 5, 2022
@achimnol achimnol self-assigned this Jan 5, 2022
@codecov
Copy link

codecov bot commented Jan 5, 2022

Codecov Report

Merging #107 (9bbfb32) into main (9c4ee94) will increase coverage by 0.11%.
The diff coverage is 80.48%.

❗ Current head 9bbfb32 differs from pull request most recent head f85b165. Consider uploading reports for the commit f85b165 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main     #107      +/-   ##
==========================================
+ Coverage   75.75%   75.87%   +0.11%     
==========================================
  Files          23       24       +1     
  Lines        3193     3196       +3     
==========================================
+ Hits         2419     2425       +6     
+ Misses        774      771       -3     
Impacted Files Coverage Δ
src/ai/backend/common/enum_extension.py 80.00% <80.00%> (ø)
src/ai/backend/common/utils.py 53.79% <100.00%> (-5.00%) ⬇️
src/ai/backend/common/redis.py 76.21% <0.00%> (+1.45%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c4ee94...f85b165. Read the comment docs.

@achimnol achimnol merged commit ec96e50 into main Jan 5, 2022
@achimnol achimnol deleted the fix/stringsetflag-typing branch January 5, 2022 05:30
achimnol added a commit that referenced this pull request Jan 5, 2022
* Selectively ignore override errors as this is a custom class
* Use a separate interface declaration file (.pyi) by refactoring out
  StringSetFlag class from the utils module to overcome limitation of
  mypy semantic analysis on "__ror__ = __or__" in subclasses of
  Enum/Flag classes.

Backported-From: main (22.03)
Backported-To: 21.09
achimnol added a commit that referenced this pull request Jan 5, 2022
* Selectively ignore override errors as this is a custom class
* Use a separate interface declaration file (.pyi) by refactoring out
  StringSetFlag class from the utils module to overcome limitation of
  mypy semantic analysis on "__ror__ = __or__" in subclasses of
  Enum/Flag classes.

Backported-From: main (22.03)
Backported-To; 21.03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant