-
Notifications
You must be signed in to change notification settings - Fork 107
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
Bump to Py3.9 #554
Bump to Py3.9 #554
Conversation
Codecov Report
@@ Coverage Diff @@
## main #554 +/- ##
=======================================
Coverage 99.14% 99.14%
=======================================
Files 49 49
Lines 2099 2099
=======================================
Hits 2081 2081
Misses 18 18
|
@@ -68,7 +68,7 @@ class MassMatrixAdaptationState(NamedTuple): | |||
|
|||
def mass_matrix_adaptation( | |||
is_diagonal_matrix: bool = True, | |||
) -> Tuple[Callable, Callable, Callable]: | |||
) -> tuple[Callable, Callable, Callable]: |
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.
Are Tuple
and List
deprecated?
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.
Nope, but from py3.9 onward we can "use built-in collection types such as list
and dict
as generic types instead of importing the corresponding capitalized types (e.g. List
or Dict
) from typing
."
https://docs.python.org/3/whatsnew/3.9.html#type-hinting-generics-in-standard-collections
No description provided.