-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c90ba59
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.
@CGall42 I would suggest to keep type annotations, they are quite nice to have.
c90ba59
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.
@PhilippWendler These can be added later, but the annotation I deleted caused the unittests to fail so it was either wrong or the unittests 3.7 and 3.8. cannot handle the annotation.
c90ba59
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.
Only the "generics" like
list[int]
do not work in type annotations before Python 3.9. But you can usetyping.List[int]
and importtyping
(or dofrom typing import List
and useList[int]
).