Skip to content

Commit 9e6cf86

Browse files
committed
Add typings
1 parent 39040b3 commit 9e6cf86

25 files changed

+1507
-439
lines changed

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[flake8]
22
ignore = E402,E731,W504,E252
33
exclude = .git,__pycache__,build,dist,.eggs,.github,.local
4+
per-file-ignores = *.pyi: F401, F403, F405, F811, E127, E128, E203, E266, E301, E302, E305, E501, E701, E704, E741, B303, W503, W504

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ docs/_build
3434
/.eggs
3535
/.vscode
3636
/.mypy_cache
37+
/.venv
38+
/.ci
39+
/.vim

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "asyncpg/pgproto"]
22
path = asyncpg/pgproto
3-
url = https://github.com/MagicStack/py-pgproto.git
3+
url = https://github.com/bryanforbes/py-pgproto.git

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
recursive-include docs *.py *.rst
22
recursive-include examples *.py
33
recursive-include tests *.py *.pem
4-
recursive-include asyncpg *.pyx *.pxd *.pxi *.py *.c *.h
4+
recursive-include asyncpg *.pyx *.pxd *.pxi *.py *.c *.h *.pyi
55
include LICENSE README.rst Makefile performance.png .flake8
6+
include asyncpg/py.typed

asyncpg/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
from .protocol import Record # NOQA
1212
from .types import * # NOQA
1313

14+
from . import exceptions
15+
1416

1517
__all__ = ('connect', 'create_pool', 'Record', 'Connection') + \
1618
exceptions.__all__ # NOQA

0 commit comments

Comments
 (0)