-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add
py.typed
to start exporting types
* chore: Add py.typed to start exporting types * chore: Add mypy * chore: Add mypy to pre-commit * chore: Name variables in `add_currency` call Resolves a mypy error. If you look back at pymoneyed in 2019 when this was added, the signature of the function was `def add_currency(code, numeric, name, countries):` (source: https://github.com/py-moneyed/py-moneyed/blob/b3ed12f9aa9c9dec83f9f09b9e1daad7949fe577/moneyed/classes.py#L250) Now the function signature is a little different: `def add_currency(code: str, numeric: Optional[str], sub_unit: int = 1, name: Optional[str] = None, countries: Optional[List[str]] = None,)`. * chore: Fix remaining mypy errors
- Loading branch information
Showing
9 changed files
with
31 additions
and
6 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
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
Empty file.
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,11 @@ | ||
[mypy] | ||
python_version = 3.7 | ||
ignore_missing_imports = True | ||
plugins = mypy_django_plugin.main | ||
exclude = (?x)( | ||
docs/.+ | ||
| .github/.+ | ||
) | ||
|
||
[mypy.plugins.django-stubs] | ||
django_settings_module = "djmoney.settings" |
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