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

Check type annotations in tests via typeguard #164

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Check type annotations in tests via typeguard #164

merged 1 commit into from
Feb 6, 2024

Conversation

jedie
Copy link
Collaborator

@jedie jedie commented Mar 30, 2023

Activate typeguard by install_import_hook() in bx_py_utils_tests/tests/__init__.py so it's
activated for unittests, only.

Fix some wrong typehints. Mainly missing | None in optional keyword arguments.

@jedie jedie changed the title WIP: Check type annotations in tests via typeguard Check type annotations in tests via typeguard Jan 16, 2024
Copy link

codecov bot commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ebdbd2f) 94.10% compared to head (9646d41) 94.17%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #164      +/-   ##
==========================================
+ Coverage   94.10%   94.17%   +0.07%     
==========================================
  Files          50       50              
  Lines        1458     1460       +2     
  Branches      241      241              
==========================================
+ Hits         1372     1375       +3     
+ Misses         86       85       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Activate typeguard by `install_import_hook()` in `bx_py_utils_tests/tests/__init__.py` so it's
activated for unittests, only.

Fix some wrong typehints. Mainly missing ` | None` in optional keyword arguments.
@phihag phihag merged commit aa9906b into master Feb 6, 2024
5 checks passed
@phihag phihag deleted the typeguard branch February 6, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants