forked from glucometers-tech/glucometerutils
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experimentally start adding type annotations, and mypy configs.
This cannot currently be added to CI because the lack of `construct` stubs, which cause "unsupported left operands" for /-constructed structs.
- Loading branch information
Showing
5 changed files
with
38 additions
and
13 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
*.egg-info/ | ||
*.pyc | ||
*~ | ||
.cache | ||
.mypy_cache/ | ||
/MANIFEST | ||
/dist/ | ||
__pycache__/ | ||
.cache | ||
build | ||
*.egg-info/ |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[mypy] | ||
python_version = 3.7 | ||
|
||
[mypy-serial] | ||
ignore_missing_imports = True | ||
|
||
[mypy-construct] | ||
ignore_missing_imports = True | ||
|
||
[mypy-hid] | ||
ignore_missing_imports = True | ||
|
||
[mypy-pyscsi.*] | ||
ignore_missing_imports = True |