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

Adopt pyright for type checking #123

Merged
merged 4 commits into from
Aug 8, 2024
Merged

Adopt pyright for type checking #123

merged 4 commits into from
Aug 8, 2024

Conversation

GDYendell
Copy link
Member

@GDYendell GDYendell commented Jul 10, 2024

Fixes #18

Copy link

codecov bot commented Jul 10, 2024

Codecov Report

Attention: Patch coverage is 96.44670% with 7 lines in your changes missing coverage. Please review.

Project coverage is 89.78%. Comparing base (4894e41) to head (aa541ed).

Files Patch % Lines
src/pvi/_format/template.py 0.00% 2 Missing ⚠️
src/pvi/_convert/_asyn_convert.py 95.83% 1 Missing ⚠️
src/pvi/_format/bob.py 94.73% 1 Missing ⚠️
src/pvi/_format/dls.py 96.42% 1 Missing ⚠️
src/pvi/_pv_group.py 0.00% 1 Missing ⚠️
src/pvi/device.py 94.11% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #123      +/-   ##
==========================================
+ Coverage   89.77%   89.78%   +0.01%     
==========================================
  Files          23       23              
  Lines        1408     1449      +41     
==========================================
+ Hits         1264     1301      +37     
- Misses        144      148       +4     

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

Be more explicit about defaults.
The schema now says widgets can be given as None, but they will still
be converted to the default even if None is passed explicitly.
These classes do not need to be serializable and the dynamic creation
of generic classes does not play nicely with both pyright strict and
pydantic with the current class hierarchy. This could be refactored
in future to separate dynamic class creation from generic class
parameterization.
@GDYendell GDYendell merged commit a8e884c into main Aug 8, 2024
18 checks passed
@GDYendell GDYendell deleted the pyright branch August 8, 2024 16:54
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.

mypy type checking does not work well for Group and its related types
1 participant