-
Notifications
You must be signed in to change notification settings - Fork 12
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
More type hinting for the codebase #265
base: master
Are you sure you want to change the base?
More type hinting for the codebase #265
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #265 +/- ##
==========================================
- Coverage 91.24% 91.23% -0.02%
==========================================
Files 105 105
Lines 7793 7814 +21
==========================================
+ Hits 7111 7129 +18
- Misses 682 685 +3 ☔ View full report in Codecov by Sentry. |
@@ -242,7 +253,8 @@ def get_viscosity_mc_pbs_herold_2017( | |||
return eta | |||
|
|||
|
|||
def get_viscosity_water_kestin_1978(temperature: float = 23.0): | |||
def get_viscosity_water_kestin_1978( | |||
temperature: float = 23.0) -> float | npt.NDArray: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the input type is a float here, then the output can only be a float, and not an ndarray.
However, in get_viscosity
above the temperature
argument can be a float or an ndarray. Is this correct?
@paulmueller |
Continuing to solve the issue #198.