-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add typings to the project and check the project using mypy. `PostgresMessage` and `PoolConnectionProxy` were broken out into their own files to make it easier to add typing via stub (pyi) files. Since they are metaclasses which generate dynamic objects, we can't type them directly in their python module.
- Loading branch information
1 parent
c2c8d20
commit 276bb46
Showing
35 changed files
with
3,849 additions
and
1,315 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,3 +1,5 @@ | ||
[flake8] | ||
select = C90,E,F,W,Y0 | ||
ignore = E402,E731,W503,W504,E252 | ||
exclude = .git,__pycache__,build,dist,.eggs,.github,.local,.venv,.tox | ||
exclude = .git,__pycache__,build,dist,.eggs,.github,.local,.venv*,.tox | ||
per-file-ignores = *.pyi: F401, F403, F405, F811, E127, E128, E203, E266, E301, E302, E305, E501, E701, E704, E741, B303, W503, W504 |
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 |
---|---|---|
|
@@ -34,3 +34,6 @@ docs/_build | |
/.eggs | ||
/.vscode | ||
/.mypy_cache | ||
/.venv* | ||
/.tox | ||
/.vim |
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,3 +1,3 @@ | ||
[submodule "asyncpg/pgproto"] | ||
path = asyncpg/pgproto | ||
url = https://github.com/MagicStack/py-pgproto.git | ||
url = https://github.com/bryanforbes/py-pgproto.git |
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,5 +1,6 @@ | ||
recursive-include docs *.py *.rst Makefile *.css | ||
recursive-include examples *.py | ||
recursive-include tests *.py *.pem | ||
recursive-include asyncpg *.pyx *.pxd *.pxi *.py *.c *.h | ||
recursive-include asyncpg *.pyx *.pxd *.pxi *.py *.pyi *.c *.h | ||
include LICENSE README.rst Makefile performance.png .flake8 | ||
include asyncpg/py.typed |
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
Oops, something went wrong.